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

Unified Diff: tools/profile_chrome/flags.py

Issue 879853002: Add a --startup option to generate combined traces for startup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Typo. Created 5 years, 11 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
Index: tools/profile_chrome/flags.py
diff --git a/tools/profile_chrome/flags.py b/tools/profile_chrome/flags.py
new file mode 100644
index 0000000000000000000000000000000000000000..643467ec8541d541221f53d619ae4c97856e2005
--- /dev/null
+++ b/tools/profile_chrome/flags.py
@@ -0,0 +1,26 @@
+# Copyright 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.
+
+import optparse
+
+def SystraceOptions(parser):
+ systrace_opts = optparse.OptionGroup(parser, 'Systrace tracing options')
+ systrace_opts.add_option('-s', '--systrace', help='Capture a systrace with '
+ 'the chosen comma-delimited systrace categories. You'
+ ' can also capture a combined Chrome + systrace by '
+ '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.
+ 'the available categories. Systrace is disabled by '
+ 'default.', metavar='SYS_CATEGORIES',
+ dest='systrace_categories', default='')
+ return systrace_opts
+
+
+def OutputOptions(parser):
+ output_options = optparse.OptionGroup(parser, 'Output options')
+ output_options.add_option('-o', '--output', help='Save trace output to file.')
+ output_options.add_option('--json', help='Save trace as raw JSON instead of '
+ 'HTML.', action='store_true')
+ output_options.add_option('--view', help='Open resulting trace file in a '
+ 'browser.', action='store_true')
+ return output_options

Powered by Google App Engine
This is Rietveld 408576698