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/power.py

Issue 1092393002: Telemetry: Quiescent power benchmarks for Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@safari-backend
Patch Set: Fix unit test Created 5 years, 8 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/measurements/page_cycler_unittest.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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 telemetry import benchmark 5 from telemetry import benchmark
6 6
7 from measurements import power 7 from measurements import power
8 import page_sets 8 import page_sets
9 9
10 10
11 @benchmark.Enabled('android') 11 @benchmark.Enabled('android')
12 class PowerAndroidAcceptance(benchmark.Benchmark): 12 class PowerAndroidAcceptance(benchmark.Benchmark):
13 """Android power acceptance test.""" 13 """Android power acceptance test."""
14 test = power.Power 14 test = power.Power
15 page_set = page_sets.AndroidAcceptancePageSet 15 page_set = page_sets.AndroidAcceptancePageSet
16 @classmethod 16 @classmethod
17 def Name(cls): 17 def Name(cls):
18 return 'power.android_acceptance' 18 return 'power.android_acceptance'
19 19
20 20
21
22 @benchmark.Enabled('android') 21 @benchmark.Enabled('android')
23 class PowerTypical10Mobile(benchmark.Benchmark): 22 class PowerTypical10Mobile(benchmark.Benchmark):
24 """Android typical 10 mobile power test.""" 23 """Android typical 10 mobile power test."""
25 test = power.Power 24 test = power.Power
26 page_set = page_sets.Typical10MobilePageSet 25 page_set = page_sets.Typical10MobilePageSet
27 @classmethod 26 @classmethod
28 def Name(cls): 27 def Name(cls):
29 return 'power.typical_10_mobile' 28 return 'power.typical_10_mobile'
30 29
31 30
31 @benchmark.Enabled('mac')
32 class PowerTop10(benchmark.Benchmark):
33 """Top 10 quiescent power test."""
34 test = power.QuiescentPower
35 page_set = page_sets.Top10PageSet
36 @classmethod
37 def Name(cls):
38 return 'power.top_10'
39
40
41 @benchmark.Enabled('mac')
42 class PowerTop25(benchmark.Benchmark):
43 """Top 25 quiescent power test."""
44 test = power.QuiescentPower
45 page_set = page_sets.Top25PageSet
46 @classmethod
47 def Name(cls):
48 return 'power.top_25'
OLDNEW
« no previous file with comments | « no previous file | tools/perf/measurements/page_cycler_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698