Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import optparse | |
| 6 | |
| 7 def SystraceOptions(parser): | |
| 8 systrace_opts = optparse.OptionGroup(parser, 'Systrace tracing options') | |
| 9 systrace_opts.add_option('-s', '--systrace', help='Capture a systrace with ' | |
| 10 'the chosen comma-delimited systrace categories. You' | |
| 11 ' can also capture a combined Chrome + systrace by ' | |
| 12 'enable both types of categories. Use "list" to see ' | |
|
Sami
2015/01/28 09:21:49
s/enable/enabling/
Benoit L
2015/01/28 12:56:57
Done.
| |
| 13 'the available categories. Systrace is disabled by ' | |
| 14 'default.', metavar='SYS_CATEGORIES', | |
| 15 dest='systrace_categories', default='') | |
| 16 return systrace_opts | |
| 17 | |
| 18 | |
| 19 def OutputOptions(parser): | |
| 20 output_options = optparse.OptionGroup(parser, 'Output options') | |
| 21 output_options.add_option('-o', '--output', help='Save trace output to file.') | |
| 22 output_options.add_option('--json', help='Save trace as raw JSON instead of ' | |
| 23 'HTML.', action='store_true') | |
| 24 output_options.add_option('--view', help='Open resulting trace file in a ' | |
| 25 'browser.', action='store_true') | |
| 26 return output_options | |
| OLD | NEW |