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

Unified Diff: tools/perf/benchmarks/skpicture_printer.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: Rename benchmarks 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/skpicture_printer.py
diff --git a/tools/perf/benchmarks/skpicture_printer.py b/tools/perf/benchmarks/skpicture_printer.py
index 0247320f3135fc28a4620b21e1e8fcdacbb0f5a3..4221d5993b2801d2864d83be526fad847077d58a 100644
--- a/tools/perf/benchmarks/skpicture_printer.py
+++ b/tools/perf/benchmarks/skpicture_printer.py
@@ -4,6 +4,7 @@
from core import perf_benchmark
+import page_sets
from telemetry import benchmark
from telemetry.core import discover
from telemetry import story
@@ -48,3 +49,43 @@ class SkpicturePrinter(perf_benchmark.PerfBenchmark):
story_set_class = _MatchPageSetName(options.page_set_name,
options.page_set_base_dir)
return story_set_class()
+
+
+@benchmark.Disabled
+class SkpicturePrinterCT(perf_benchmark.PerfBenchmark):
+ """Captures SKPs for Cluster Telemetry."""
+
+ @classmethod
+ def Name(cls):
+ return 'skpicture_printer_ct'
+
+ @classmethod
+ def AddBenchmarkCommandLineArgs(cls, parser):
+ parser.add_option('--user-agent', action='store', type='string',
+ default=None, help='Options are mobile and desktop.')
+ parser.add_option('--archive-data-file', action='store', type='string',
+ default=None,
+ help='The location of the WPR JSON archive file.')
+ parser.add_option('--urls-list', action='store', type='string',
+ default=None,
+ help='This is a comma separated list of urls. '
+ 'Eg: http://www.google.com,http://www.gmail.com')
+ parser.add_option('-s', '--skp-outdir',
+ default=None,
+ help='Output directory for the SKP files')
+
+ @classmethod
+ def ProcessCommandLineArgs(cls, parser, args):
+ if not args.user_agent:
+ parser.error('Please specify --user_agent.')
+ if not args.archive_data_file:
+ parser.error('Please specify --archive_data_file.')
+ if not args.urls_list:
+ parser.error('Please specify --urls_list.')
+
+ def CreatePageTest(self, options):
+ return skpicture_printer.SkpicturePrinter(options.skp_outdir)
+
+ def CreateStorySet(self, options):
+ return page_sets.CTPageSet(
+ options.urls_list, options.user_agent, options.archive_data_file)

Powered by Google App Engine
This is Rietveld 408576698