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

Unified Diff: tools/telemetry/telemetry/web_perf/metrics/smoothness.py

Issue 467343002: Add first_gesture_scroll_update_latency metric (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « tools/telemetry/telemetry/web_perf/metrics/rendering_stats_unittest.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/web_perf/metrics/smoothness.py
diff --git a/tools/telemetry/telemetry/web_perf/metrics/smoothness.py b/tools/telemetry/telemetry/web_perf/metrics/smoothness.py
index c294db824e9ca2fbeae60f1ddebb76e3f55a06d2..301102709795b85999d30e91f87469743ab52da3 100644
--- a/tools/telemetry/telemetry/web_perf/metrics/smoothness.py
+++ b/tools/telemetry/telemetry/web_perf/metrics/smoothness.py
@@ -45,6 +45,12 @@ class SmoothnessMetric(timeline_based_metric.TimelineBasedMetric):
results.AddValue(scalar.ScalarValue(
results.current_page, 'scroll_update_latency_discrepancy', 'ms',
round(scroll_update_latency_discrepancy, 4)))
+ gesture_scroll_update_latency = FlattenList(
+ stats.gesture_scroll_update_latency)
+ if gesture_scroll_update_latency:
+ results.AddValue(scalar.ScalarValue(
+ results.current_page, 'first_gesture_scroll_update_latency', 'ms',
+ round(gesture_scroll_update_latency[0], 4)))
# List of queueing durations.
frame_queueing_durations = FlattenList(stats.frame_queueing_durations)
« no previous file with comments | « tools/telemetry/telemetry/web_perf/metrics/rendering_stats_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698