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

Side by Side Diff: systrace/profile_chrome/flags.py

Issue 2297403003: Use Systrace tracing controller in profile_chrome (Closed) Base URL: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Patch Set: Dynamically pass the agent list to the profile_chrome profiler Created 4 years, 3 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 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import optparse 5 import optparse
6 6
7 7
8 def OutputOptions(parser): 8 def OutputOptions(parser):
9 output_options = optparse.OptionGroup(parser, 'Output options') 9 output_options = optparse.OptionGroup(parser, 'Output options')
10 output_options.add_option('-o', '--output', help='Save trace output to file.') 10 output_options.add_option('-o', '--output', dest='output_file',
11 help='Save trace output to file.')
11 output_options.add_option('--json', help='Save trace as raw JSON instead of ' 12 output_options.add_option('--json', help='Save trace as raw JSON instead of '
12 'HTML.', action='store_true') 13 'HTML.', dest='write_json')
13 output_options.add_option('--view', help='Open resulting trace file in a ' 14 output_options.add_option('--view', help='Open resulting trace file in a '
14 'browser.', action='store_true') 15 'browser.', action='store_true')
15 return output_options 16 return output_options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698