aboutsummaryrefslogtreecommitdiff
path: root/catapult/systrace/bin/adb_profile_chrome_startup
diff options
context:
space:
mode:
authorIsabelle Taylor <taylori@google.com>2019-08-07 10:29:28 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-08-07 10:29:28 -0700
commiteaca3fc33c5d7ae15aee00cc976acd5c123b2365 (patch)
treed00862cb1a1556c28c10469e6156b9d26ca1b51b /catapult/systrace/bin/adb_profile_chrome_startup
parentf4e722b911fcc6f7164026432de62a02ea3460fb (diff)
parent8e2ec7bab513b1db837e292aadee7caf1a4c395b (diff)
downloadchromium-trace-eaca3fc33c5d7ae15aee00cc976acd5c123b2365.tar.gz
Merge "Update catapult to latest version (76a241669)" am: 6e5717f80b am: ee01823b5b am: 3328f1104e
am: 8e2ec7bab5 Change-Id: Ia1645886356db3f147ffeef4fac2aecf5d05c232
Diffstat (limited to 'catapult/systrace/bin/adb_profile_chrome_startup')
-rwxr-xr-xcatapult/systrace/bin/adb_profile_chrome_startup7
1 files changed, 6 insertions, 1 deletions
diff --git a/catapult/systrace/bin/adb_profile_chrome_startup b/catapult/systrace/bin/adb_profile_chrome_startup
index 6bd3270c..42b37dfc 100755
--- a/catapult/systrace/bin/adb_profile_chrome_startup
+++ b/catapult/systrace/bin/adb_profile_chrome_startup
@@ -53,6 +53,12 @@ def _CreateOptionParser():
parser.add_option('-t', '--time', help='Stops tracing after N seconds, 0 to '
'manually stop (startup trace ends after at most 5s).',
default=5, metavar='N', type='int', dest='trace_time')
+ parser.add_option('-c', '--chrome_categories', help='Chrome tracing '
+ 'categories to record.', default=_DEFAULT_CHROME_CATEGORIES,
+ type='string')
+ parser.add_option('-u', '--atrace-buffer-size', help='Number of bytes to'
+ ' be used for capturing atrace data', type='int',
+ default=None, dest='trace_buf_size')
parser.add_option_group(chrome_startup_tracing_agent.add_options(parser))
parser.add_option_group(atrace_agent.add_options(parser))
@@ -91,7 +97,6 @@ def main():
# removed.
options.ring_buffer = False
options.trace_memory = False
- options.chrome_categories = _DEFAULT_CHROME_CATEGORIES
if options.atrace_categories in ['list', 'help']:
atrace_agent.list_categories(atrace_agent.get_config(options))