Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Unified Diff: tools/metrics/histograms/histograms.xml

Issue 1820813004: Add UMA to HTMLCanvasElement to track image formats usage of toDataURL/toBlob (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding comment based on feedback Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/metrics/histograms/histograms.xml
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml
index b42f34c6a2b2dd16b1070c699d0f2899c5dab4dd..7c4aeb15e5f54cb04a34b89e755f94a7ccb9a6a1 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -3963,6 +3963,14 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
</summary>
</histogram>
+<histogram name="Canvas.RequestedImageMimeTypes" enum="RequestedImageMimeType">
+ <owner>xlai@chromium.org</owner>
+ <summary>
+ Records the occurence of image file formats passed into toDataURL and toBlob
+ functions in canvas.
+ </summary>
+</histogram>
+
<histogram name="CAPSUpdater.Step" enum="CAPSUpdaterStep">
<owner>cpu@chromium.org</owner>
<summary>
@@ -79464,6 +79472,17 @@ To add a new entry, add it with any value and run test to compute valid value.
</int>
</enum>
+<enum name="RequestedImageMimeType" type="int">
+ <int value="0" label="Png"/>
+ <int value="1" label="Jpeg"/>
+ <int value="2" label="Webp"/>
+ <int value="3" label="Gif"/>
+ <int value="4" label="Bmp"/>
+ <int value="5" label="Ico"/>
+ <int value="6" label="Tiff"/>
+ <int value="7" label="Unknown"/>
+</enum>
+
<enum name="RequestMediaKeySystemAccessStatus" type="int">
<int value="0" label="Requested"/>
<int value="1" label="Supported"/>
@@ -85332,6 +85351,13 @@ To add a new entry, add it with any value and run test to compute valid value.
<affected-histogram name="PLT.BeginToFinish_Reload"/>
</histogram_suffixes>
+<histogram_suffixes name="CanvasRequestedImageMimeTypeFunctions">
+ <suffix name="toDataURL" label="Image formats passed to canvas.toDataURL"/>
+ <suffix name="toBlobCallback"
+ label="Image formats passed to canvas.toBlob (callback)"/>
+ <affected-histogram name="Canvas.RequestedImageMimeTypes"/>
+</histogram_suffixes>
+
<histogram_suffixes name="CertificateTypeAlgorithms" separator=".">
<owner>rsleevi@chromium.org</owner>
<suffix name="DH" label="DH"/>
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698