Commit f24e7573 authored by benjhayden's avatar benjhayden Committed by Commit bot

Fix record_android_profile.py

Review URL: https://codereview.chromium.org/877323005

Cr-Commit-Position: refs/heads/master@{#313616}
parent fc4a9aae
......@@ -19,16 +19,16 @@ def _RunPrebuilt(options):
output_file = os.path.join(tempfile.mkdtemp(), options.profiler)
raw_input('Press enter to start profiling...')
print '>> Starting profiler', options.profiler
browser.platform.profiling_controller.Start(
options.profiler, output_file)
print 'Press enter or CTRL+C to stop'
browser.profiling_controller.Start(options.profiler, output_file)
try:
raw_input()
raw_input('Press enter or CTRL+C to stop')
except KeyboardInterrupt:
pass
finally:
browser.platform.profiling_controller.Stop()
print '<< Stopped profiler ', options.profiler
print '<< Stopping ...',
sys.stdout.flush()
browser.profiling_controller.Stop()
print 'Stopped profiler ', options.profiler
if __name__ == '__main__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment