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

Unified Diff: tools/perf/measurements/smoothness.py

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, 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:
View side-by-side diff with in-line comments
Download patch
Index: tools/perf/measurements/smoothness.py
diff --git a/tools/perf/measurements/smoothness.py b/tools/perf/measurements/smoothness.py
index 80b7cd6307ccfaf12f1718c0f9c98d3d20be6ef2..cad305e5a34761e168e4cbebd019932751d06856 100644
--- a/tools/perf/measurements/smoothness.py
+++ b/tools/perf/measurements/smoothness.py
@@ -159,6 +159,11 @@ def CalcLatencyResults(rendering_stats_deltas, results):
'totalTouchAckedLatency',
'average_touch_acked_latency',
results)
+ averageImplThreadToMainThreadTimeInSeconds = rendering_stats_deltas.get(
+ 'averageImplThreadToMainThreadTimeInSeconds', 0)
+ results.Add('average_impl_thread_to_main_thread_time', 'ms',
+ 1000 * averageImplThreadToMainThreadTimeInSeconds,
+ data_type='unimportant')
class Smoothness(page_measurement.PageMeasurement):
def __init__(self):

Powered by Google App Engine
This is Rietveld 408576698