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 |