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

Unified Diff: cc/content_layer.cc

Issue 12041015: Use proper histogram macros for Renderer4 histograms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/frame_rate_counter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/content_layer.cc
diff --git a/cc/content_layer.cc b/cc/content_layer.cc
index a0ddc89515e484158182c89937e21914f400a27e..4b051ad6dd671e8cefcd700d89e1b323ff82244b 100644
--- a/cc/content_layer.cc
+++ b/cc/content_layer.cc
@@ -32,8 +32,11 @@ void ContentLayerPainter::paint(SkCanvas* canvas, gfx::Rect contentRect, gfx::Re
m_client->paintContents(canvas, contentRect, opaque);
base::TimeTicks paintEnd = base::TimeTicks::HighResNow();
double pixelsPerSec = (contentRect.width() * contentRect.height()) / (paintEnd - paintStart).InSecondsF();
- HISTOGRAM_CUSTOM_COUNTS("Renderer4.AccelContentPaintDurationMS", (paintEnd - paintStart).InMilliseconds(), 0, 120, 30);
- HISTOGRAM_CUSTOM_COUNTS("Renderer4.AccelContentPaintMegapixPerSecond", pixelsPerSec / 1000000, 10, 210, 30);
+ UMA_HISTOGRAM_CUSTOM_COUNTS("Renderer4.AccelContentPaintDurationMS",
+ (paintEnd - paintStart).InMilliseconds(),
+ 0, 120, 30);
+ UMA_HISTOGRAM_CUSTOM_COUNTS("Renderer4.AccelContentPaintMegapixPerSecond",
+ pixelsPerSec / 1000000, 10, 210, 30);
}
const int ContentLayer::kLCDTextMaxChangeCount = 1;
« no previous file with comments | « no previous file | cc/frame_rate_counter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698