| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 core import perf_benchmark | 5 from core import perf_benchmark |
| 6 from telemetry.timeline import chrome_trace_category_filter | 6 from telemetry.timeline import chrome_trace_category_filter |
| 7 from telemetry.web_perf import timeline_based_measurement | 7 from telemetry.web_perf import timeline_based_measurement |
| 8 import page_sets | 8 import page_sets |
| 9 from telemetry import benchmark | 9 from telemetry import benchmark |
| 10 | 10 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 options = timeline_based_measurement.Options() | 111 options = timeline_based_measurement.Options() |
| 112 options.config.enable_battor_trace = True | 112 options.config.enable_battor_trace = True |
| 113 options.config.enable_chrome_trace = False | 113 options.config.enable_chrome_trace = False |
| 114 options.config.chrome_trace_config.SetDefaultOverheadFilter() | 114 options.config.chrome_trace_config.SetDefaultOverheadFilter() |
| 115 options.SetTimelineBasedMetrics(['powerMetric', 'clockSyncLatencyMetric']) | 115 options.SetTimelineBasedMetrics(['powerMetric', 'clockSyncLatencyMetric']) |
| 116 return options | 116 return options |
| 117 | 117 |
| 118 @classmethod | 118 @classmethod |
| 119 def Name(cls): | 119 def Name(cls): |
| 120 return 'battor.power_cases_no_chrome_trace' | 120 return 'battor.power_cases_no_chrome_trace' |
| 121 |
| 122 |
| 123 @benchmark.Enabled('mac') |
| 124 class BattOrTrivialPages(_BattOrBenchmark): |
| 125 |
| 126 def CreateStorySet(self, options): |
| 127 # We want it to wait for 30 seconds to be comparable to legacy power tests. |
| 128 return page_sets.MacGpuTrivialPagesStorySet(wait_in_seconds=30) |
| 129 |
| 130 @classmethod |
| 131 def Name(cls): |
| 132 return 'battor.trivial_pages' |
| OLD | NEW |