Chromium Code Reviews| Index: systrace/bin/adb_profile_chrome_startup |
| diff --git a/systrace/bin/adb_profile_chrome_startup b/systrace/bin/adb_profile_chrome_startup |
| index 0e99d18f1703cca2cde3a05f8a5ad2cd8c6546f1..21976697ccb83ff3ca6ae2bd1870a226654aacf9 100755 |
| --- a/systrace/bin/adb_profile_chrome_startup |
| +++ b/systrace/bin/adb_profile_chrome_startup |
| @@ -33,14 +33,9 @@ def _CreateOptionParser(): |
| '/developers/how-tos/trace-event-profiling-' |
| 'tool for detailed instructions for ' |
| 'profiling.') |
| - parser.add_option('--url', help='URL to visit on startup. Default: ' |
| - 'https://www.google.com. An empty URL launches Chrome with' |
| - ' a MAIN action instead of VIEW.', |
| - default='https://www.google.com', metavar='URL') |
| - parser.add_option('--cold', help='Flush the OS page cache before starting the' |
| - ' browser. Note that this require a device with root ' |
| - 'access.', default=False, action='store_true') |
| - parser.add_option_group(flags.AtraceOptions(parser)) |
| + |
| + parser.add_option_group(chrome_startup_tracing_agent.add_options(parser)) |
|
Zhen Wang
2016/08/29 21:00:26
Move this after all parser.add_option() function c
washingtonp
2016/08/29 21:13:16
Done.
|
| + parser.add_option_group(atrace_tracing_agent.add_options(parser)) |
| parser.add_option_group(flags.OutputOptions(parser)) |
| browsers = sorted(profiler.GetSupportedBrowsers().keys()) |
| @@ -89,7 +84,8 @@ def main(): |
| device, package_info, options.cold, options.url)) |
| if options.output: |
| options.output = os.path.expanduser(options.output) |
| - result = profiler.CaptureProfile(enabled_agents, |
| + result = profiler.CaptureProfile(options, |
| + enabled_agents, |
| options.time, |
| output=options.output, |
| compress=options.compress, |