Chromium Code Reviews| 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.web_perf import timeline_based_measurement | 6 from telemetry.web_perf import timeline_based_measurement |
| 7 import page_sets | 7 import page_sets |
| 8 from telemetry import benchmark | 8 from telemetry import benchmark |
| 9 | 9 |
| 10 | 10 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 109 options = timeline_based_measurement.Options() | 109 options = timeline_based_measurement.Options() |
| 110 options.config.enable_battor_trace = True | 110 options.config.enable_battor_trace = True |
| 111 options.config.enable_chrome_trace = False | 111 options.config.enable_chrome_trace = False |
| 112 options.config.chrome_trace_config.SetDefaultOverheadFilter() | 112 options.config.chrome_trace_config.SetDefaultOverheadFilter() |
| 113 options.SetTimelineBasedMetrics(['powerMetric', 'clockSyncLatencyMetric']) | 113 options.SetTimelineBasedMetrics(['powerMetric', 'clockSyncLatencyMetric']) |
| 114 return options | 114 return options |
| 115 | 115 |
| 116 @classmethod | 116 @classmethod |
| 117 def Name(cls): | 117 def Name(cls): |
| 118 return 'battor.power_cases_no_chrome_trace' | 118 return 'battor.power_cases_no_chrome_trace' |
| 119 | |
| 120 | |
| 121 class BattOrTrivialPages(_BattOrBenchmark): | |
|
rnephew (Reviews Here)
2016/08/19 16:49:43
Should I limit this only to mac? Its running fine
erikchen
2016/08/19 17:01:31
If you want to run the tests on Android, I recomme
rnephew (Reviews Here)
2016/08/19 17:06:39
Set to only run on mac.
| |
| 122 page_set = page_sets.MacGpuTrivialPagesStorySet | |
| 123 | |
| 124 @classmethod | |
| 125 def Name(cls): | |
| 126 return 'battor.trivial_pages' | |
| OLD | NEW |