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

Side by Side Diff: tools/perf/contrib/cluster_telemetry/ct_benchmarks_util.py

Issue 2876073003: Migrate cluster telemetry benchmarks to tools/perf/contrib/cluster_telemetry/ (Closed)
Patch Set: Remove BENCHMARKS_BLACK_LIST Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Copyright 2015 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6
7 def AddBenchmarkCommandLineArgs(parser): 6 def AddBenchmarkCommandLineArgs(parser):
8 parser.add_option('--user-agent', action='store', type='string', 7 parser.add_option('--user-agent', action='store', type='string',
9 default=None, help='Options are mobile and desktop.') 8 default=None, help='Options are mobile and desktop.')
10 parser.add_option('--archive-data-file', action='store', type='string', 9 parser.add_option('--archive-data-file', action='store', type='string',
11 default=None, 10 default=None,
12 help='The location of the WPR JSON archive file.') 11 help='The location of the WPR JSON archive file.')
13 parser.add_option('--urls-list', action='store', type='string', 12 parser.add_option('--urls-list', action='store', type='string',
14 default=None, 13 default=None,
15 help='This is a comma separated list of urls. ' 14 help='This is a comma separated list of urls. '
16 'Eg: http://www.google.com,http://www.gmail.com') 15 'Eg: http://www.google.com,http://www.gmail.com')
17 16
18 17
19 def ValidateCommandLineArgs(parser, args): 18 def ValidateCommandLineArgs(parser, args):
20 if not args.user_agent: 19 if not args.user_agent:
21 parser.error('Please specify --user_agent.') 20 parser.error('Please specify --user_agent.')
22 if not args.archive_data_file: 21 if not args.archive_data_file:
23 parser.error('Please specify --archive_data_file.') 22 parser.error('Please specify --archive_data_file.')
24 if not args.urls_list: 23 if not args.urls_list:
25 parser.error('Please specify --urls_list.') 24 parser.error('Please specify --urls_list.')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698