Chromium Code Reviews| Index: tools/perf/benchmarks/battor.py |
| diff --git a/tools/perf/benchmarks/battor.py b/tools/perf/benchmarks/battor.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5538fe679708ba964d7e689fe657f2a64b62909b |
| --- /dev/null |
| +++ b/tools/perf/benchmarks/battor.py |
| @@ -0,0 +1,37 @@ |
| +# Copyright 2016 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +from core import perf_benchmark |
| +from telemetry.web_perf import timeline_based_measurement |
| +import page_sets |
| + |
| + |
| +class _BattOrBenchmark(perf_benchmark.PerfBenchmark): |
| + |
| + def CreateTimelineBasedMeasurementOptions(self): |
| + options = timeline_based_measurement.Options() |
| + options.config.enable_battor_trace = True |
| + # TODO(rnephew): Enable chrome trace when clock syncs work well with it. |
| + options.config.enable_chrome_trace = False |
| + options.SetTimelineBasedMetric('SystemHealthMetrics') |
| + return options |
| + |
| + @classmethod |
| + def ShouldDisable(cls, browser): |
| + # Galaxy s5s have problems with running system health metrics. |
|
charliea (OOO until 10-5)
2016/05/17 13:44:26
nit: s/s5s/S5s
http://www.amazon.com/Samsung-Gala
rnephew (Reviews Here)
2016/05/17 16:18:03
Done.
|
| + # http://crbug.com/600463 |
| + galaxy_s5_type_name = 'SM-G900H' |
| + return browser.platform.GetDeviceTypeName() == galaxy_s5_type_name |
| + |
| + @classmethod |
| + def ShouldTearDownStateAfterEachStoryRun(cls): |
| + return False |
|
nednguyen
2016/05/17 14:26:02
nits: 2 blank line here
rnephew (Reviews Here)
2016/05/17 16:18:03
Done.
|
| + |
| +class BattOrPowerMobileSites(_BattOrBenchmark): |
| + page_set = page_sets.power_cases.PowerCasesPageSet |
| + |
| + @classmethod |
| + def Name(cls): |
| + return 'BattOr.BattOrCases' |
| + |