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

Unified Diff: tools/perf/benchmarks/blink_perf.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/blink_perf.py
diff --git a/tools/perf/benchmarks/blink_perf.py b/tools/perf/benchmarks/blink_perf.py
index 038ebb496897c7438203591910837ff562e50785..0543986a625b278216649da8c4f400988a548eb0 100644
--- a/tools/perf/benchmarks/blink_perf.py
+++ b/tools/perf/benchmarks/blink_perf.py
@@ -119,6 +119,10 @@ class BlinkPerfAnimation(benchmark.Benchmark):
tag = 'animation'
test = _BlinkPerfMeasurement
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.animation'
+
def CreatePageSet(self, options):
path = os.path.join(BLINK_PERF_BASE_DIR, 'Animation')
return CreatePageSetFromPath(path, SKIPPED_FILE)
@@ -128,6 +132,10 @@ class BlinkPerfBindings(benchmark.Benchmark):
tag = 'bindings'
test = _BlinkPerfMeasurement
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.bindings'
+
def CreatePageSet(self, options):
path = os.path.join(BLINK_PERF_BASE_DIR, 'Bindings')
return CreatePageSetFromPath(path, SKIPPED_FILE)
@@ -138,6 +146,10 @@ class BlinkPerfBlinkGC(benchmark.Benchmark):
tag = 'blink_gc'
test = _BlinkPerfMeasurement
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.blink_gc'
+
def CreatePageSet(self, options):
path = os.path.join(BLINK_PERF_BASE_DIR, 'BlinkGC')
return CreatePageSetFromPath(path, SKIPPED_FILE)
@@ -147,6 +159,10 @@ class BlinkPerfCSS(benchmark.Benchmark):
tag = 'css'
test = _BlinkPerfMeasurement
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.css'
+
def CreatePageSet(self, options):
path = os.path.join(BLINK_PERF_BASE_DIR, 'CSS')
return CreatePageSetFromPath(path, SKIPPED_FILE)
@@ -156,6 +172,10 @@ class BlinkPerfCanvas(benchmark.Benchmark):
tag = 'canvas'
test = _BlinkPerfMeasurement
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.canvas'
+
def CreatePageSet(self, options):
path = os.path.join(BLINK_PERF_BASE_DIR, 'Canvas')
return CreatePageSetFromPath(path, SKIPPED_FILE)
@@ -165,6 +185,10 @@ class BlinkPerfDOM(benchmark.Benchmark):
tag = 'dom'
test = _BlinkPerfMeasurement
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.dom'
+
def CreatePageSet(self, options):
path = os.path.join(BLINK_PERF_BASE_DIR, 'DOM')
return CreatePageSetFromPath(path, SKIPPED_FILE)
@@ -174,6 +198,10 @@ class BlinkPerfEvents(benchmark.Benchmark):
tag = 'events'
test = _BlinkPerfMeasurement
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.events'
+
def CreatePageSet(self, options):
path = os.path.join(BLINK_PERF_BASE_DIR, 'Events')
return CreatePageSetFromPath(path, SKIPPED_FILE)
@@ -183,6 +211,10 @@ class BlinkPerfLayout(benchmark.Benchmark):
tag = 'layout'
test = _BlinkPerfMeasurement
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.layout'
+
def CreatePageSet(self, options):
path = os.path.join(BLINK_PERF_BASE_DIR, 'Layout')
return CreatePageSetFromPath(path, SKIPPED_FILE)
@@ -193,11 +225,19 @@ class BlinkPerfLayoutFullLayout(BlinkPerfLayout):
tag = 'layout_full_frame'
test = _BlinkPerfFullFrameMeasurement
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.layout_full_frame'
+
class BlinkPerfMutation(benchmark.Benchmark):
tag = 'mutation'
test = _BlinkPerfMeasurement
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.mutation'
+
def CreatePageSet(self, options):
path = os.path.join(BLINK_PERF_BASE_DIR, 'Mutation')
return CreatePageSetFromPath(path, SKIPPED_FILE)
@@ -207,6 +247,10 @@ class BlinkPerfParser(benchmark.Benchmark):
tag = 'parser'
test = _BlinkPerfMeasurement
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.parser'
+
def CreatePageSet(self, options):
path = os.path.join(BLINK_PERF_BASE_DIR, 'Parser')
return CreatePageSetFromPath(path, SKIPPED_FILE)
@@ -216,6 +260,10 @@ class BlinkPerfSVG(benchmark.Benchmark):
tag = 'svg'
test = _BlinkPerfMeasurement
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.svg'
+
def CreatePageSet(self, options):
path = os.path.join(BLINK_PERF_BASE_DIR, 'SVG')
return CreatePageSetFromPath(path, SKIPPED_FILE)
@@ -226,11 +274,19 @@ class BlinkPerfSVGFullLayout(BlinkPerfSVG):
tag = 'svg_full_frame'
test = _BlinkPerfFullFrameMeasurement
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.svg_full_frame'
+
class BlinkPerfShadowDOM(benchmark.Benchmark):
tag = 'shadow_dom'
test = _BlinkPerfMeasurement
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.shadow_dom'
+
def CreatePageSet(self, options):
path = os.path.join(BLINK_PERF_BASE_DIR, 'ShadowDOM')
return CreatePageSetFromPath(path, SKIPPED_FILE)
@@ -242,6 +298,10 @@ class BlinkPerfXMLHttpRequest(benchmark.Benchmark):
tag = 'xml_http_request'
test = _BlinkPerfMeasurement
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.xml_http_request'
+
def CreatePageSet(self, options):
path = os.path.join(BLINK_PERF_BASE_DIR, 'XMLHttpRequest')
return CreatePageSetFromPath(path, SKIPPED_FILE)

Powered by Google App Engine
This is Rietveld 408576698