Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: tools/perf/benchmarks/battor.py

Issue 2261713003: [Telemetry] Add trivial pages page set to BattOr benchmarks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [Telemetry] Add trivial pages page set to BattOr benchmarks. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.web_perf import timeline_based_measurement 7 from telemetry.web_perf import timeline_based_measurement
7 import page_sets 8 import page_sets
8 from telemetry import benchmark 9 from telemetry import benchmark
9 10
10 11
11 # TODO(rnephew): Remove BattOr naming from all benchmarks once the BattOr tests 12 # TODO(rnephew): Remove BattOr naming from all benchmarks once the BattOr tests
12 # are the primary means of benchmarking power. 13 # are the primary means of benchmarking power.
13 class _BattOrBenchmark(perf_benchmark.PerfBenchmark): 14 class _BattOrBenchmark(perf_benchmark.PerfBenchmark):
14 15
15 def CreateTimelineBasedMeasurementOptions(self): 16 def CreateTimelineBasedMeasurementOptions(self):
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 options = timeline_based_measurement.Options() 110 options = timeline_based_measurement.Options()
110 options.config.enable_battor_trace = True 111 options.config.enable_battor_trace = True
111 options.config.enable_chrome_trace = False 112 options.config.enable_chrome_trace = False
112 options.config.chrome_trace_config.SetDefaultOverheadFilter() 113 options.config.chrome_trace_config.SetDefaultOverheadFilter()
113 options.SetTimelineBasedMetrics(['powerMetric', 'clockSyncLatencyMetric']) 114 options.SetTimelineBasedMetrics(['powerMetric', 'clockSyncLatencyMetric'])
114 return options 115 return options
115 116
116 @classmethod 117 @classmethod
117 def Name(cls): 118 def Name(cls):
118 return 'battor.power_cases_no_chrome_trace' 119 return 'battor.power_cases_no_chrome_trace'
120
121
122 @benchmark.Enabled('mac')
123 class BattOrTrivialPages(_BattOrBenchmark):
124
125 def CreateTimelineBasedMeasurementOptions(self):
126 options = timeline_based_measurement.Options(
127 chrome_trace_category_filter.ChromeTraceCategoryFilter())
128 options.config.chrome_trace_config.category_filter.AddFilterString('rail')
129 options.config.enable_battor_trace = True
130 options.config.enable_chrome_trace = True
131 options.SetTimelineBasedMetrics(['powerMetric', 'clockSyncLatencyMetric'])
132 return options
133
134 def CreateStorySet(self, options):
135 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.
136
137 @classmethod
138 def Name(cls):
139 return 'battor.trivial_pages'
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/mac_gpu_sites.py » ('j') | tools/perf/page_sets/mac_gpu_sites.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698