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

Unified Diff: tools/perf/benchmarks/rasterize_and_record_micro.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/rasterize_and_record_micro.py
diff --git a/tools/perf/benchmarks/rasterize_and_record_micro.py b/tools/perf/benchmarks/rasterize_and_record_micro.py
index 9a5ababf4d34e1252feed93313e8001a57e20653..1c232a491186b788a65fde827dbe45d2f75b87a9 100644
--- a/tools/perf/benchmarks/rasterize_and_record_micro.py
+++ b/tools/perf/benchmarks/rasterize_and_record_micro.py
@@ -95,3 +95,38 @@ class RasterizeAndRecordMicroPolymer(_RasterizeAndRecordMicro):
def CreateStorySet(self, options):
return page_sets.PolymerPageSet(run_no_page_interactions=True)
+
+
+@benchmark.Disabled
+class RasterizeAndRecordMicroCT(_RasterizeAndRecordMicro):
+ """Measures rasterize and record performance for Cluster Telemetry."""
+
+ @classmethod
+ def Name(cls):
+ return 'rasterize_and_record_micro_ct'
+
+ @classmethod
+ def AddBenchmarkCommandLineArgs(cls, parser):
nednguyen 2015/10/15 12:51:19 Since this logic is the same for the three benchma
rmistry 2015/10/15 13:24:32 Done.
+ _RasterizeAndRecordMicro.AddBenchmarkCommandLineArgs(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')
+
+ @classmethod
+ def ProcessCommandLineArgs(cls, parser, args):
nednguyen 2015/10/15 12:51:19 Same for this. ct_benchmarks_util.ValidateComman
rmistry 2015/10/15 13:24:32 Done.
+ 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 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