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): ...@@ -19,16 +19,16 @@ def _RunPrebuilt(options):
output_file = os.path.join(tempfile.mkdtemp(), options.profiler) output_file = os.path.join(tempfile.mkdtemp(), options.profiler)
raw_input('Press enter to start profiling...') raw_input('Press enter to start profiling...')
print '>> Starting profiler', options.profiler print '>> Starting profiler', options.profiler
browser.platform.profiling_controller.Start( browser.profiling_controller.Start(options.profiler, output_file)
options.profiler, output_file)
print 'Press enter or CTRL+C to stop'
try: try:
raw_input() raw_input('Press enter or CTRL+C to stop')
except KeyboardInterrupt: except KeyboardInterrupt:
pass pass
finally: finally:
browser.platform.profiling_controller.Stop() print '<< Stopping ...',
print '<< Stopped profiler ', options.profiler sys.stdout.flush()
browser.profiling_controller.Stop()
print 'Stopped profiler ', options.profiler
if __name__ == '__main__': 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