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

Side by Side Diff: tools/android/adb_profile_chrome/profiler.py

Issue 310413003: Move adb_profile_chrome under tools/android/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add shebang and exec bit temporarily. Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import os 5 import os
6 6
7 from chrome_profiler import trace_packager 7 from adb_profile_chrome import trace_packager
8 from chrome_profiler import ui 8 from adb_profile_chrome import ui
9 9
10 from pylib import constants 10 from pylib import constants
11 11
12 12
13 def _StartTracing(controllers, interval): 13 def _StartTracing(controllers, interval):
14 for controller in controllers: 14 for controller in controllers:
15 controller.StartTracing(interval) 15 controller.StartTracing(interval)
16 16
17 17
18 def _StopTracing(controllers): 18 def _StopTracing(controllers):
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 else: 74 else:
75 ui.PrintMessage('Capturing %s. Press Enter to stop...' % \ 75 ui.PrintMessage('Capturing %s. Press Enter to stop...' % \
76 trace_type, eol='') 76 trace_type, eol='')
77 raw_input() 77 raw_input()
78 finally: 78 finally:
79 _StopTracing(controllers) 79 _StopTracing(controllers)
80 if interval: 80 if interval:
81 ui.PrintMessage('done') 81 ui.PrintMessage('done')
82 82
83 return _PullTraces(controllers, output, compress, write_json) 83 return _PullTraces(controllers, output, compress, write_json)
OLDNEW
« no previous file with comments | « tools/android/adb_profile_chrome/perf_controller_unittest.py ('k') | tools/android/adb_profile_chrome/profiler_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698