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

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: add SCROLL_UPDATE_ORIGINAL_COMPONENT to specifically track scroll_update latency 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..9c0c8259de5e53c262bd66dc27b0244d511de2ba 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_update_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("scrollUpdateCount", scroll_update_count);
+ enumerator->AddTimeDeltaInSecondsF("totalScrollUpdateLatency",
+ total_scroll_update_latency);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698