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

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

Issue 816353008: [Telemetry] Explicitly define Name() method for all perf benchmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 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 measurements import power 5 from measurements import power
6 import page_sets 6 import page_sets
7 from telemetry import benchmark 7 from telemetry import benchmark
8 8
9 9
10 @benchmark.Enabled('android') 10 @benchmark.Enabled('android')
11 class PowerAndroidAcceptance(benchmark.Benchmark): 11 class PowerAndroidAcceptance(benchmark.Benchmark):
12
13 """Android power acceptance test.""" 12 """Android power acceptance test."""
14
15 test = power.Power 13 test = power.Power
16 page_set = page_sets.AndroidAcceptancePageSet 14 page_set = page_sets.AndroidAcceptancePageSet
15 @classmethod
16 def Name(cls):
17 return 'power.android_acceptance'
18
17 19
18 20
19 @benchmark.Enabled('android') 21 @benchmark.Enabled('android')
20 class PowerTypical10Mobile(benchmark.Benchmark): 22 class PowerTypical10Mobile(benchmark.Benchmark):
21
22 """Android typical 10 mobile power test.""" 23 """Android typical 10 mobile power test."""
23
24 test = power.Power 24 test = power.Power
25 page_set = page_sets.Typical10MobilePageSet 25 page_set = page_sets.Typical10MobilePageSet
26 @classmethod
27 def Name(cls):
28 return 'power.typical_10_mobile'
29
30
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698