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

Side by Side Diff: tools/perf/metrics/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, 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 import os 4 import os
5 5
6 from telemetry.core import util 6 from telemetry.core import util
7 7
8 class SmoothnessMetrics(object): 8 class SmoothnessMetrics(object):
9 def __init__(self, tab): 9 def __init__(self, tab):
10 self._tab = tab 10 self._tab = tab
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 Average(s.touch_ui_latency, s.touch_ui_count, 1000, 3), 148 Average(s.touch_ui_latency, s.touch_ui_count, 1000, 3),
149 data_type='unimportant') 149 data_type='unimportant')
150 results.Add('average_touch_acked_latency', 'ms', 150 results.Add('average_touch_acked_latency', 'ms',
151 Average(s.touch_acked_latency, s.touch_acked_count, 151 Average(s.touch_acked_latency, s.touch_acked_count,
152 1000, 3), 152 1000, 3),
153 data_type='unimportant') 153 data_type='unimportant')
154 results.Add('average_scroll_update_latency', 'ms', 154 results.Add('average_scroll_update_latency', 'ms',
155 Average(s.scroll_update_latency, s.scroll_update_count, 155 Average(s.scroll_update_latency, s.scroll_update_count,
156 1000, 3), 156 1000, 3),
157 data_type='unimportant') 157 data_type='unimportant')
158 results.Add('average_impl_to_main_touch_event_latency', 'ms',
159 Average(s.total_impl_to_main_touch_event_latency,
160 s.impl_to_main_touch_event_count, 1000, 3),
161 data_type='unimportant')
162 results.Add('average_impl_to_main_gesture_scroll_event_latency', 'ms',
163 Average(s.total_impl_to_main_gesture_scroll_event_latency,
164 s.impl_to_main_gesture_scroll_event_count, 1000, 3),
165 data_type='unimportant')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698