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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: tools/perf/benchmarks/power.py
diff --git a/tools/perf/benchmarks/power.py b/tools/perf/benchmarks/power.py
index ab96a59f476f18a70cf6cada7a33da404505717a..d697f1bd1c81c071a40c45963cef0ef3e4644764 100644
--- a/tools/perf/benchmarks/power.py
+++ b/tools/perf/benchmarks/power.py
@@ -9,17 +9,22 @@ from telemetry import benchmark
@benchmark.Enabled('android')
class PowerAndroidAcceptance(benchmark.Benchmark):
-
"""Android power acceptance test."""
-
test = power.Power
page_set = page_sets.AndroidAcceptancePageSet
+ @classmethod
+ def Name(cls):
+ return 'power.android_acceptance'
+
@benchmark.Enabled('android')
class PowerTypical10Mobile(benchmark.Benchmark):
-
"""Android typical 10 mobile power test."""
-
test = power.Power
page_set = page_sets.Typical10MobilePageSet
+ @classmethod
+ def Name(cls):
+ return 'power.typical_10_mobile'
+
+

Powered by Google App Engine
This is Rietveld 408576698