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

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

Issue 338233003: Telemetry: Set scaling governor on all cpus (on all devices) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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..2a199f5d0930d4ff1ccc6590dcc4d98ef1d95977 100644
--- a/tools/android/adb_profile_chrome/perf_controller.py
+++ b/tools/android/adb_profile_chrome/perf_controller.py
@@ -58,7 +58,7 @@ class _PerfProfiler(object):
if categories:
cmd += ['--event', ','.join(categories)]
self._perf_control = perf_control.PerfControl(self._device)
- self._perf_control.ForceAllCpusOnline(True)
+ self._perf_control.SetHighPerfMode(True)
self._perf_process = subprocess.Popen(cmd,
stdout=self._log_file,
stderr=subprocess.STDOUT)
@@ -68,7 +68,7 @@ class _PerfProfiler(object):
self._device.old_interface.RunShellCommand(
'kill -SIGINT ' + ' '.join(perf_pids))
self._perf_process.wait()
- self._perf_control.ForceAllCpusOnline(False)
+ self._perf_control.SetDefaultPerfMode()
def _FailWithLog(self, msg):
self._log_file.seek(0)

Powered by Google App Engine
This is Rietveld 408576698