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

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

Side-by-side diff isn't available for this file because of its large size.
Issue 1992253002: Adding performance tracking for canvas API calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 4 years, 6 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/modules/canvas2d/BaseRenderingContext2D.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 8b88725d6326c6c7e9fa93ccecb525fbe0e224ea..5555b9b2a4e6755997b136de7d1c7873910db986 100644
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -3434,6 +3434,26 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries.
</summary>
</histogram>
+<histogram name="Blink.Canvas.DrawImage" units="microseconds">
+ <owner>junov@chromium.org</owner>
+ <summary>Time spent on 2D canvas drawImage API call.</summary>
+</histogram>
+
+<histogram name="Blink.Canvas.GetImageData" units="microseconds">
+ <owner>junov@chromium.org</owner>
+ <summary>Time spent on 2D canvas getImageData API call.</summary>
+</histogram>
+
+<histogram name="Blink.Canvas.PutImageData" units="microseconds">
+ <owner>junov@chromium.org</owner>
+ <summary>Time spent on 2D canvas putImageData API call.</summary>
+</histogram>
+
+<histogram name="Blink.Canvas.ToDataURL" units="microseconds">
+ <owner>junov@chromium.org</owner>
+ <summary>Time spent on 2D canvas toDataURL API call.</summary>
+</histogram>
+
<histogram name="Blink.Compositing.UpdateTime" units="microseconds">
<owner>paint-dev@chromium.org</owner>
<summary>
@@ -90944,6 +90964,51 @@ To add a new entry, add it with any value and run test to compute valid value.
<affected-histogram name="WebRTC.Stun.BatchSuccessPercent.UnknownNAT"/>
</histogram_suffixes>
+<histogram_suffixes name="BlinkCanvasDrawImageTime" separator=".">
+ <suffix name="CanvasCPU"/>
+ <suffix name="CanvasDisplayList"/>
+ <suffix name="CanvasGPU"/>
+ <suffix name="ImageBitmapCPU"/>
+ <suffix name="ImageBitmapDisplayList"/>
+ <suffix name="ImageBitmapGPU"/>
+ <suffix name="OthersCPU"/>
+ <suffix name="OthersDisplayList"/>
+ <suffix name="OthersGPU"/>
+ <suffix name="SVGCPU"/>
+ <suffix name="SVGDisplayList"/>
+ <suffix name="SVGGPU"/>
+ <suffix name="VideoCPU"/>
+ <suffix name="VideoDisplayList"/>
+ <suffix name="VideoGPU"/>
+ <affected-histogram name="Blink.Canvas.DrawImage"/>
+</histogram_suffixes>
+
+<histogram_suffixes name="BlinkCanvasGetImageDataTime" separator=".">
+ <suffix name="CPU"/>
+ <suffix name="DisplayList"/>
+ <suffix name="GPU"/>
+ <affected-histogram name="Blink.Canvas.GetImageData"/>
+</histogram_suffixes>
+
+<histogram_suffixes name="BlinkCanvasPutImageDataTime" separator=".">
+ <suffix name="CPU"/>
+ <suffix name="DisplayList"/>
+ <suffix name="GPU"/>
+ <affected-histogram name="Blink.Canvas.PutImageData"/>
+</histogram_suffixes>
Ilya Sherman 2016/05/25 00:20:04 You could condense these down to just: <histogram
xidachen 2016/05/25 01:35:05 Thank you, this is much cleaner.
+
+<histogram_suffixes name="BlinkCanvasToDataURLTime" separator=".">
+ <suffix name="BMP"/>
+ <suffix name="GIF"/>
+ <suffix name="ICON"/>
+ <suffix name="JPEG"/>
+ <suffix name="PNG"/>
+ <suffix name="TIFF"/>
+ <suffix name="Unknown"/>
+ <suffix name="WEBP"/>
+ <affected-histogram name="Blink.Canvas.ToDataURL"/>
+</histogram_suffixes>
+
<histogram_suffixes name="BlinkGCReason">
<suffix name="IdleGC" label="Idle GC"/>
<suffix name="PreciseGC" label="Precise GC"/>
« no previous file with comments | « third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698