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

Unified Diff: tools/android/adb_profile_chrome/perf_controller.py

Issue 333933003: [Android] Switch to DeviceUtils version of RunShellCommand. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/tombstones.py ('k') | tools/android/adb_profile_chrome/systrace_controller.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/adb_profile_chrome/perf_controller.py
diff --git a/tools/android/adb_profile_chrome/perf_controller.py b/tools/android/adb_profile_chrome/perf_controller.py
index 064300d38aeead490bae3c74dc9ad74bf31ef52d..523fb855ff1156999b4ca1b129145ea9a5d60305 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,
« no previous file with comments | « build/android/tombstones.py ('k') | tools/android/adb_profile_chrome/systrace_controller.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698