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

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

Issue 1150563004: [Android] Log temperature at the start of each perf test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/perf/test_runner.py
diff --git a/build/android/pylib/perf/test_runner.py b/build/android/pylib/perf/test_runner.py
index 3bee6021db81335c8b6d32a080d8c595cc3d7c65..991fc003049152246d89d15f290b88c8c1b228c9 100644
--- a/build/android/pylib/perf/test_runner.py
+++ b/build/android/pylib/perf/test_runner.py
@@ -63,6 +63,7 @@ from pylib import constants
from pylib import forwarder
from pylib.base import base_test_result
from pylib.base import base_test_runner
+from pylib.device import battery_utils
from pylib.device import device_errors
@@ -191,6 +192,7 @@ class TestRunner(base_test_runner.BaseTestRunner):
self._tests = tests
self._flaky_tests = flaky_tests
self._output_dir = None
+ self._device_battery = battery_utils.BatteryUtils(self.device)
@staticmethod
def _IsBetter(result):
@@ -261,6 +263,9 @@ class TestRunner(base_test_runner.BaseTestRunner):
self._output_dir = tempfile.mkdtemp()
cmd = cmd + ' --output-dir=%s' % self._output_dir
+ logging.info(
+ 'temperature: %s (0.1 C)',
+ str(self._device_battery.GetBatteryInfo().get('temperature')))
logging.info('%s : %s', test_name, cmd)
start_time = datetime.datetime.now()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698