OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 from telemetry.core.platform import tracing_category_filter | |
5 from telemetry.core.platform import tracing_options | |
6 from telemetry.timeline.model import TimelineModel | 4 from telemetry.timeline.model import TimelineModel |
| 5 from telemetry.timeline import tracing_category_filter |
| 6 from telemetry.timeline import tracing_options |
7 from telemetry.value import trace | 7 from telemetry.value import trace |
8 from telemetry.web_perf.metrics import smoothness | 8 from telemetry.web_perf.metrics import smoothness |
9 from telemetry.web_perf import smooth_gesture_util | 9 from telemetry.web_perf import smooth_gesture_util |
10 from telemetry.web_perf import timeline_interaction_record as tir_module | 10 from telemetry.web_perf import timeline_interaction_record as tir_module |
11 | 11 |
12 from telemetry.page import page_test | 12 from telemetry.page import page_test |
13 | 13 |
14 | 14 |
15 class SmoothnessController(object): | 15 class SmoothnessController(object): |
16 def __init__(self): | 16 def __init__(self): |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 # Create an interaction_record for this legacy measurement. Since we don't | 77 # Create an interaction_record for this legacy measurement. Since we don't |
78 # wrap the results that are sent to smoothness metric, the label will | 78 # wrap the results that are sent to smoothness metric, the label will |
79 # not be used. | 79 # not be used. |
80 smoothness_metric = smoothness.SmoothnessMetric() | 80 smoothness_metric = smoothness.SmoothnessMetric() |
81 smoothness_metric.AddResults( | 81 smoothness_metric.AddResults( |
82 self._timeline_model, renderer_thread, smooth_records, results) | 82 self._timeline_model, renderer_thread, smooth_records, results) |
83 | 83 |
84 def CleanUp(self, tab): | 84 def CleanUp(self, tab): |
85 if tab.browser.platform.tracing_controller.is_tracing_running: | 85 if tab.browser.platform.tracing_controller.is_tracing_running: |
86 tab.browser.platform.tracing_controller.Stop() | 86 tab.browser.platform.tracing_controller.Stop() |
OLD | NEW |