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

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: Rebase Created 4 years, 3 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
« no previous file with comments | « no previous file | tools/perf/page_sets/mac_gpu_sites.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.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
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'
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/mac_gpu_sites.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698