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

Unified Diff: tools/perf/benchmarks/repaint.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/repaint.py
diff --git a/tools/perf/benchmarks/repaint.py b/tools/perf/benchmarks/repaint.py
index 194b57453ac577e0af92c2728ef1817d0fdb95c1..b39a6238fc1b191cadf3632de342a0757655315a 100644
--- a/tools/perf/benchmarks/repaint.py
+++ b/tools/perf/benchmarks/repaint.py
@@ -22,6 +22,10 @@ class _Repaint(benchmark.Benchmark):
default=None,
help='Height of invalidations for fixed_size mode.')
+ @classmethod
+ def Name(cls):
+ return 'repaint'
+
def CreatePageTest(self, options):
return repaint_measurement.Repaint(options.mode, options.width,
options.height)
@@ -33,6 +37,10 @@ class RepaintKeyMobileSites(_Repaint):
http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
page_set = page_sets.KeyMobileSitesRepaintPageSet
+ @classmethod
+ def Name(cls):
+ return 'repaint.key_mobile_sites_repaint'
+
@benchmark.Enabled('android')
class RepaintGpuRasterizationKeyMobileSites(_Repaint):
@@ -44,3 +52,7 @@ class RepaintGpuRasterizationKeyMobileSites(_Repaint):
page_set = page_sets.KeyMobileSitesRepaintPageSet
def CustomizeBrowserOptions(self, options):
silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
+ @classmethod
+ def Name(cls):
+ return 'repaint.gpu_rasterization.key_mobile_sites_repaint'
+

Powered by Google App Engine
This is Rietveld 408576698