diff options
author | jbudorick@chromium.org <jbudorick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-16 18:59:30 +0000 |
---|---|---|
committer | jbudorick@chromium.org <jbudorick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-16 18:59:30 +0000 |
commit | f0f4b9730e547189baa999f657179d3756297d0c (patch) | |
tree | 2c7ab002938b40f6650d9d1cee573642dcd66b37 /tools/android | |
parent | 4c0bb96313936a342a73705c64b6b929abd5c185 (diff) | |
download | chromium_src-f0f4b9730e547189baa999f657179d3756297d0c.zip chromium_src-f0f4b9730e547189baa999f657179d3756297d0c.tar.gz chromium_src-f0f4b9730e547189baa999f657179d3756297d0c.tar.bz2 |
[Android] Switch to DeviceUtils version of RunShellCommand.
BUG=267773
Review URL: https://codereview.chromium.org/333933003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277508 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/android')
-rw-r--r-- | tools/android/adb_profile_chrome/perf_controller.py | 5 | ||||
-rw-r--r-- | tools/android/adb_profile_chrome/systrace_controller.py | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/tools/android/adb_profile_chrome/perf_controller.py b/tools/android/adb_profile_chrome/perf_controller.py index 064300d..523fb85 100644 --- a/tools/android/adb_profile_chrome/perf_controller.py +++ b/tools/android/adb_profile_chrome/perf_controller.py @@ -65,8 +65,7 @@ class _PerfProfiler(object): def SignalAndWait(self): perf_pids = self._device.old_interface.ExtractPid('perf') - self._device.old_interface.RunShellCommand( - 'kill -SIGINT ' + ' '.join(perf_pids)) + self._device.RunShellCommand('kill -SIGINT ' + ' '.join(perf_pids)) self._perf_process.wait() self._perf_control.ForceAllCpusOnline(False) @@ -117,7 +116,7 @@ class PerfProfilerController(controllers.BaseController): @classmethod def GetCategories(cls, device): perf_binary = cls._PrepareDevice(device) - return device.old_interface.RunShellCommand('%s list' % perf_binary) + return device.RunShellCommand('%s list' % perf_binary) def StartTracing(self, _): self._perf_instance = _PerfProfiler(self._device, diff --git a/tools/android/adb_profile_chrome/systrace_controller.py b/tools/android/adb_profile_chrome/systrace_controller.py index 369bc88..3ec4cc7 100644 --- a/tools/android/adb_profile_chrome/systrace_controller.py +++ b/tools/android/adb_profile_chrome/systrace_controller.py @@ -37,7 +37,7 @@ class SystraceController(controllers.BaseController): @staticmethod def GetCategories(device): - return device.old_interface.RunShellCommand('atrace --list_categories') + return device.RunShellCommand('atrace --list_categories') def StartTracing(self, _): self._thread = threading.Thread(target=self._CollectData) |