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

Unified Diff: tools/perf/record_android_profile.py

Issue 877323005: Fix record_android_profile.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/record_android_profile.py
diff --git a/tools/perf/record_android_profile.py b/tools/perf/record_android_profile.py
index 7f5b639e48785e3f70cff55b1f8f688f0206bbfd..b9e63eb2c2b3297be4c9a61b4bd475460a00a66a 100755
--- a/tools/perf/record_android_profile.py
+++ b/tools/perf/record_android_profile.py
@@ -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__':
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698