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

Unified Diff: tools/perf/benchmarks/repaint.py

Issue 1393023002: Move CT pages / page sets / benchmarks into Telemetry repo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add repaint Created 5 years, 2 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 2293c0446ab52eec351cd03b6263dd9957ffa2e1..82ff204096dbc2242d4a8c2445a383614be7f28e 100644
--- a/tools/perf/benchmarks/repaint.py
+++ b/tools/perf/benchmarks/repaint.py
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+from benchmarks import skpicture_printer
from core import perf_benchmark
from benchmarks import silk_flags
@@ -23,6 +24,10 @@ class _Repaint(perf_benchmark.PerfBenchmark):
parser.add_option('--height', type='int',
default=None,
help='Height of invalidations for fixed_size mode.')
+ parser.add_option('--page-set-name', action='store', type='string',
+ default=None)
+ parser.add_option('--page-set-base-dir', action='store', type='string',
+ default=None)
@classmethod
def Name(cls):
@@ -64,3 +69,24 @@ class RepaintGpuRasterizationKeyMobileSites(_Repaint):
def Name(cls):
return 'repaint.gpu_rasterization.key_mobile_sites_repaint'
+
+@benchmark.Disabled
+class RepaintCustomPageSet(_Repaint):
+ """Measures repaint performance on a custom page set."""
+
+ @classmethod
+ def Name(cls):
+ return 'repaint.custom'
+
+ @classmethod
+ def ProcessCommandLineArgs(cls, parser, args):
+ if not args.page_set_name:
+ parser.error('Please specify --page-set-name')
+ if not args.page_set_base_dir:
+ parser.error('Please specify --page-set-base-dir')
+
+ def CreateStorySet(self, options):
+ page_set_class = skpicture_printer.MatchPageSetName(
+ options.page_set_name, options.page_set_base_dir)
+ return page_set_class()
+

Powered by Google App Engine
This is Rietveld 408576698