| OLD | NEW |
| 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 Loading... |
| 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') |
| OLD | NEW |