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 | 4 |
5 from telemetry.core.platform import tracing_category_filter | |
6 from telemetry.page import page_test | 5 from telemetry.page import page_test |
| 6 from telemetry.timeline import tracing_category_filter |
7 from telemetry.web_perf import timeline_based_measurement | 7 from telemetry.web_perf import timeline_based_measurement |
8 | 8 |
9 | 9 |
10 class _CustomResultsWrapper(timeline_based_measurement.ResultsWrapperInterface): | 10 class _CustomResultsWrapper(timeline_based_measurement.ResultsWrapperInterface): |
11 | 11 |
12 def _AssertNewValueHasSameInteractionLabel(self, new_value): | 12 def _AssertNewValueHasSameInteractionLabel(self, new_value): |
13 for value in self._results.current_page_run.values: | 13 for value in self._results.current_page_run.values: |
14 if value.name == new_value.name: | 14 if value.name == new_value.name: |
15 assert value.tir_label == new_value.tir_label, ( | 15 assert value.tir_label == new_value.tir_label, ( |
16 'Smoothness measurement do not support multiple interaction record ' | 16 'Smoothness measurement do not support multiple interaction record ' |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 options.AppendExtraBrowserArgs([ | 63 options.AppendExtraBrowserArgs([ |
64 '--enable-impl-side-painting', | 64 '--enable-impl-side-painting', |
65 '--enable-threaded-compositing', | 65 '--enable-threaded-compositing', |
66 '--enable-gpu-benchmarking' | 66 '--enable-gpu-benchmarking' |
67 ]) | 67 ]) |
68 | 68 |
69 class SmoothnessWithRestart(Smoothness): | 69 class SmoothnessWithRestart(Smoothness): |
70 def __init__(self): | 70 def __init__(self): |
71 super(SmoothnessWithRestart, self).__init__( | 71 super(SmoothnessWithRestart, self).__init__( |
72 needs_browser_restart_after_each_page=True) | 72 needs_browser_restart_after_each_page=True) |
OLD | NEW |