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

Unified Diff: tools/perf/record_android_profile.py

Issue 511653002: Add profiling_controller that manages profilers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | tools/telemetry/telemetry/core/browser.py » ('j') | 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 8c8c5ab2c6be65f83a5801bfe7e736c3b1c9f24a..6e8ab8130c7b91af2c37fb22d61fedccbe0bcbae 100755
--- a/tools/perf/record_android_profile.py
+++ b/tools/perf/record_android_profile.py
@@ -20,14 +20,15 @@ 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.StartProfiling(options.profiler, output_file)
+ browser.platform.profiling_controller.Start(
+ options.profiler, output_file)
print 'Press enter or CTRL+C to stop'
try:
raw_input()
except KeyboardInterrupt:
pass
finally:
- browser.StopProfiling()
+ browser.platform.profiling_controller.Stop()
print '<< Stopped profiler ', options.profiler
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/browser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698