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

Unified Diff: content/common/browser_rendering_stats.cc

Issue 18937002: Add UMA/Telemetry stats for end-to-end scroll latency (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rename Created 7 years, 5 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
Index: content/common/browser_rendering_stats.cc
diff --git a/content/common/browser_rendering_stats.cc b/content/common/browser_rendering_stats.cc
index 0ead3c7f067255912f42f93de6d70acea8d57073..794fc63c1a4adbbcab76dd0f1ca926f7563bd261 100644
--- a/content/common/browser_rendering_stats.cc
+++ b/content/common/browser_rendering_stats.cc
@@ -9,7 +9,8 @@ namespace content {
BrowserRenderingStats::BrowserRenderingStats() :
input_event_count(0),
touch_ui_count(0),
- touch_acked_count(0) {
+ touch_acked_count(0),
+ scroll_event_count(0) {
}
BrowserRenderingStats::~BrowserRenderingStats() {}
@@ -26,6 +27,10 @@ void BrowserRenderingStats::EnumerateFields(
enumerator->AddInt("touchAckedCount", touch_acked_count);
enumerator->AddTimeDeltaInSecondsF("totalTouchAckedLatency",
total_touch_acked_latency);
+
+ enumerator->AddInt("scrollEventCount", scroll_event_count);
+ enumerator->AddTimeDeltaInSecondsF("totalScrollLatency",
+ total_scroll_latency);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698