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

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

Issue 1984473002: [Telemetry] Add BattOr benchmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/power_cases.py » ('j') | tools/perf/page_sets/power_cases.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 from core import perf_benchmark
6 from telemetry.web_perf import timeline_based_measurement
7 import page_sets
8
9
10 class _BattOrBenchmark(perf_benchmark.PerfBenchmark):
charliea (OOO until 10-5) 2016/05/16 19:30:21 Same note here as I have in the other CL: this isn
rnephew (Reviews Here) 2016/05/16 20:05:57 As written these are literally only battor benchma
charliea (OOO until 10-5) 2016/05/17 13:44:26 Acknowledged.
11
12 def CreateTimelineBasedMeasurementOptions(self):
13 options = timeline_based_measurement.Options()
14 options.config.enable_battor_trace = True
15 # TODO(rnephew): Enable chrome trace when clock syncs work well with it.
16 options.config.enable_chrome_trace = False
17 options.SetTimelineBasedMetric('SystemHealthMetrics')
18 return options
19
20 @classmethod
21 def ShouldDisable(cls, browser):
22 # http://crbug.com/600463
charliea (OOO until 10-5) 2016/05/16 19:30:21 nit: I usually see crbugs in comments used as a so
rnephew (Reviews Here) 2016/05/16 20:05:56 Done.
23 galaxy_s5_type_name = 'SM-G900H'
24 return browser.platform.GetDeviceTypeName() == galaxy_s5_type_name
25
26 @classmethod
27 def ShouldTerDownStateAfterEachStoryRun(cls):
charliea (OOO until 10-5) 2016/05/16 19:30:21 s/Ter/Tear
rnephew (Reviews Here) 2016/05/16 20:05:57 Done.
charliea (OOO until 10-5) 2016/05/17 13:44:26 nit: you can delete this. it's the default impleme
rnephew (Reviews Here) 2016/05/17 16:18:03 Ned specifically asked me to add this, so interest
nednguyen 2016/05/17 17:17:56 What I meant is we override this to return True so
rnephew (Reviews Here) 2016/05/17 17:35:07 Changed to return true.
28 return False
29
30 class BattOrPowerMobileSites(_BattOrBenchmark):
31 page_set = page_sets.PowerCasesPageSet
32
33 @classmethod
34 def Name(cls):
35 return 'BattOr.BattOrCases'
36
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/power_cases.py » ('j') | tools/perf/page_sets/power_cases.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698