• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5import optparse
6
7
8def OutputOptions(parser):
9  output_options = optparse.OptionGroup(parser, 'Output options')
10  output_options.add_option('-o', '--output', dest='output_file',
11                            help='Save trace output to file.')
12  output_options.add_option('--json', help='Save trace as raw JSON instead of '
13                            'HTML.', dest='write_json')
14  output_options.add_option('--view', help='Open resulting trace file in a '
15                            'browser.', action='store_true')
16  return output_options
17