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

Unified Diff: content/common/browser_rendering_stats.cc

Issue 16213002: Add telemetry to track the time an event spent waiting for the main thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 4 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 9c0c8259de5e53c262bd66dc27b0244d511de2ba..6fe309048479964b1b61de534910ddc6644e3a0f 100644
--- a/content/common/browser_rendering_stats.cc
+++ b/content/common/browser_rendering_stats.cc
@@ -10,7 +10,9 @@ BrowserRenderingStats::BrowserRenderingStats() :
input_event_count(0),
touch_ui_count(0),
touch_acked_count(0),
- scroll_update_count(0) {
+ scroll_update_count(0),
+ impl_to_main_touch_event_count(0),
+ impl_to_main_gesture_scroll_event_count(0) {
}
BrowserRenderingStats::~BrowserRenderingStats() {}
@@ -31,6 +33,15 @@ void BrowserRenderingStats::EnumerateFields(
enumerator->AddInt("scrollUpdateCount", scroll_update_count);
enumerator->AddTimeDeltaInSecondsF("totalScrollUpdateLatency",
total_scroll_update_latency);
+
+ enumerator->AddInt("implToMainTouchEventCount",
+ impl_to_main_touch_event_count);
+ enumerator->AddTimeDeltaInSecondsF("totalImplToMainTouchEventLatency",
+ total_impl_to_main_touch_event_latency);
+ enumerator->AddInt("implToMainGestureScrollEventCount",
+ impl_to_main_gesture_scroll_event_count);
+ enumerator->AddTimeDeltaInSecondsF("totalImplToMainGestureScrollEventLatency",
+ total_impl_to_main_gesture_scroll_event_latency);
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698