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

Unified Diff: tools/telemetry/telemetry/core/chrome/android_platform_backend.py

Issue 12720010: Clean up control of perf governor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up control of perf governor - code review fixes Created 7 years, 9 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/pylib/perf_tests_helper.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/chrome/android_platform_backend.py
diff --git a/tools/telemetry/telemetry/core/chrome/android_platform_backend.py b/tools/telemetry/telemetry/core/chrome/android_platform_backend.py
index 549b47622f0aba88475ac431a37553b220b66aed..83d45db49031d5e209e4eefe6b1f647ec3ba6d67 100644
--- a/tools/telemetry/telemetry/core/chrome/android_platform_backend.py
+++ b/tools/telemetry/telemetry/core/chrome/android_platform_backend.py
@@ -29,7 +29,7 @@ class AndroidPlatformBackend(platform_backend.PlatformBackend):
super(AndroidPlatformBackend, self).__init__()
self._adb = adb
self._surface_stats_collector = None
- self._perf_tests_setup = perf_tests_helper.PerfTestSetup(self._adb)
+ self._perf_tests_setup = perf_tests_helper.PerfControl(self._adb)
self._thermal_throttle = thermal_throttle.ThermalThrottle(self._adb)
self._no_performance_mode = no_performance_mode
self._raw_display_frame_rate_measurements = []
@@ -63,9 +63,9 @@ class AndroidPlatformBackend(platform_backend.PlatformBackend):
if self._no_performance_mode:
return
if enabled:
- self._perf_tests_setup.SetUp()
+ self._perf_tests_setup.SetHighPerfMode()
else:
- self._perf_tests_setup.TearDown()
+ self._perf_tests_setup.SetDefaultPerfMode()
def CanMonitorThermalThrottling(self):
return True
« no previous file with comments | « build/android/pylib/perf_tests_helper.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698