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

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

Issue 132433004: Collecting LatencyInfo in telemetry (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: use 95 percentil for input latency metric Created 6 years, 11 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_unittest.py
diff --git a/tools/perf/measurements/smoothness_unittest.py b/tools/perf/measurements/smoothness_unittest.py
index 4404393aba45fd67a8515fa542b5d16797ab162f..424ab5c029a2645e4f7a737429511ead5ebd9767 100644
--- a/tools/perf/measurements/smoothness_unittest.py
+++ b/tools/perf/measurements/smoothness_unittest.py
@@ -40,3 +40,24 @@ class SmoothnessUnitTest(
mostly_smooth = results.FindAllPageSpecificValuesNamed('mostly_smooth')
self.assertEquals(len(mostly_smooth), 1)
self.assertGreaterEqual(mostly_smooth[0].GetRepresentativeNumber(), 0)
+
+ mean_mouse_wheel_latency = results.FindAllPageSpecificValuesNamed(
+ 'mean_mouse_wheel_latency')
+ if mean_mouse_wheel_latency:
+ self.assertEquals(len(mean_mouse_wheel_latency), 1)
+ self.assertGreater(
+ mean_mouse_wheel_latency[0].GetRepresentativeNumber(), 0)
+
+ mean_gesture_scroll_latency = results.FindAllPageSpecificValuesNamed(
+ 'mean_gesture_scroll_latency')
+ if mean_gesture_scroll_latency:
+ self.assertEquals(len(mean_gesture_scroll_latency), 1)
+ self.assertGreater(
+ mean_gesture_scroll_latency[0].GetRepresentativeNumber(), 0)
+
+ mean_touch_scroll_latency = results.FindAllPageSpecificValuesNamed(
+ 'mean_touch_scroll_latency')
+ if mean_touch_scroll_latency:
+ self.assertEquals(len(mean_touch_scroll_latency), 1)
+ self.assertGreater(
+ mean_touch_scroll_latency[0].GetRepresentativeNumber(), 0)

Powered by Google App Engine
This is Rietveld 408576698