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

Unified Diff: tools/perf/ct_benchmarks_util.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: Address comments 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
« no previous file with comments | « tools/perf/benchmarks/skpicture_printer.py ('k') | tools/perf/page_sets/ct_page_set.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/ct_benchmarks_util.py
diff --git a/tools/perf/ct_benchmarks_util.py b/tools/perf/ct_benchmarks_util.py
new file mode 100755
index 0000000000000000000000000000000000000000..d82a8bfaa2971bd9d1c849c02dcefc2861a974fe
--- /dev/null
+++ b/tools/perf/ct_benchmarks_util.py
@@ -0,0 +1,25 @@
+#!/usr/bin/env python
+# Copyright (c) 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+
+def 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')
+
+
+def ValidateCommandLineArgs(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.')
« no previous file with comments | « tools/perf/benchmarks/skpicture_printer.py ('k') | tools/perf/page_sets/ct_page_set.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698