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

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

Issue 167343003: Add latency metric mean_js_touch_scroll_latency for JS touch handler driven scroll (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 10 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/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/perf/metrics/smoothness.py
diff --git a/tools/perf/metrics/smoothness.py b/tools/perf/metrics/smoothness.py
index 710c9d58481f37a5a8458168f34f10f639694a2d..675113f591f195a3d0243e7c9928ac1cbb147b5c 100644
--- a/tools/perf/metrics/smoothness.py
+++ b/tools/perf/metrics/smoothness.py
@@ -92,6 +92,13 @@ class SmoothnessMetric(Metric):
results.Add('mean_touch_scroll_latency', 'ms',
round(mean_touch_scroll_latency, 3))
+ if self._stats.js_touch_scroll_latency:
+ mean_js_touch_scroll_latency = statistics.ArithmeticMean(
+ self._stats.js_touch_scroll_latency,
+ len(self._stats.js_touch_scroll_latency))
+ results.Add('mean_js_touch_scroll_latency', 'ms',
+ round(mean_js_touch_scroll_latency, 3))
+
# List of raw frame times.
frame_times = FlattenList(self._stats.frame_times)
results.Add('frame_times', 'ms', frame_times)
« no previous file with comments | « tools/perf/metrics/rendering_stats_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698