Chromium Code Reviews| Index: tools/perf/benchmarks/battor.py |
| diff --git a/tools/perf/benchmarks/battor.py b/tools/perf/benchmarks/battor.py |
| index 2cbc14ecfae92af0266f99c48e6944e92fb115e2..564ec5676d873979bd025e4a1cdf9cc9a99120d2 100644 |
| --- a/tools/perf/benchmarks/battor.py |
| +++ b/tools/perf/benchmarks/battor.py |
| @@ -3,6 +3,7 @@ |
| # found in the LICENSE file. |
| from core import perf_benchmark |
| +from telemetry.timeline import chrome_trace_category_filter |
| from telemetry.web_perf import timeline_based_measurement |
| import page_sets |
| from telemetry import benchmark |
| @@ -116,3 +117,23 @@ class BattOrPowerCasesNoChromeTrace(_BattOrBenchmark): |
| @classmethod |
| def Name(cls): |
| return 'battor.power_cases_no_chrome_trace' |
| + |
| + |
| +@benchmark.Enabled('mac') |
| +class BattOrTrivialPages(_BattOrBenchmark): |
| + |
| + def CreateTimelineBasedMeasurementOptions(self): |
| + options = timeline_based_measurement.Options( |
| + chrome_trace_category_filter.ChromeTraceCategoryFilter()) |
| + options.config.chrome_trace_config.category_filter.AddFilterString('rail') |
| + options.config.enable_battor_trace = True |
| + options.config.enable_chrome_trace = True |
| + options.SetTimelineBasedMetrics(['powerMetric', 'clockSyncLatencyMetric']) |
| + return options |
| + |
| + def CreateStorySet(self, options): |
| + return page_sets.MacGpuTrivialPagesStorySet(wait=30) |
|
nednguyen
2016/08/22 12:58:37
Can you add some comment about we want to wait fo
rnephew (Reviews Here)
2016/08/22 17:06:47
Done.
|
| + |
| + @classmethod |
| + def Name(cls): |
| + return 'battor.trivial_pages' |