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

Unified Diff: build/android/pylib/perf/thermal_throttle.py

Issue 23681011: Android: splits cache_control and perf_control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More files Created 7 years, 3 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/surface_stats_collector.py ('k') | build/android/pylib/perf_tests_helper.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/perf/thermal_throttle.py
diff --git a/build/android/pylib/thermal_throttle.py b/build/android/pylib/perf/thermal_throttle.py
similarity index 92%
copy from build/android/pylib/thermal_throttle.py
copy to build/android/pylib/perf/thermal_throttle.py
index 4028f0723f351cc07874c6ffa748b2bf26405c11..63efa28ccb50cf4c52f72a52162920e6e71ddfe6 100644
--- a/build/android/pylib/thermal_throttle.py
+++ b/build/android/pylib/perf/thermal_throttle.py
@@ -4,8 +4,9 @@
import logging
+
class ThermalThrottle(object):
- """Class to detect and track thermal throttling
+ """Class to detect and track thermal throttling.
Usage:
Wait for IsThrottled() to be False before running test
@@ -14,19 +15,20 @@ class ThermalThrottle(object):
Currently assumes an OMap device.
"""
+
def __init__(self, adb):
self._adb = adb
self._throttled = False
def HasBeenThrottled(self):
- """ True if there has been any throttling since the last call to
- HasBeenThrottled or IsThrottled
+ """True if there has been any throttling since the last call to
+ HasBeenThrottled or IsThrottled.
"""
return self._ReadLog()
def IsThrottled(self):
- """True if currently throttled"""
+ """True if currently throttled."""
self._ReadLog()
return self._throttled
« no previous file with comments | « build/android/pylib/perf/surface_stats_collector.py ('k') | build/android/pylib/perf_tests_helper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698