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

Unified Diff: build/android/pylib/base/base_test_runner.py

Issue 17463008: [Android] Log the size of data transerred to device. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 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/pylib/android_commands.py ('k') | build/android/pylib/gtest/test_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/base/base_test_runner.py
diff --git a/build/android/pylib/base/base_test_runner.py b/build/android/pylib/base/base_test_runner.py
index f2dd817044aec4762c46c589c90c0bca576a215f..812a85768c2225941ff71eaddb536c74e6453711 100644
--- a/build/android/pylib/base/base_test_runner.py
+++ b/build/android/pylib/base/base_test_runner.py
@@ -93,11 +93,19 @@ class BaseTestRunner(object):
"""Run once before all tests are run."""
Forwarder.KillDevice(self.adb, self.tool)
self.InstallTestPackage()
+ push_size_before = self.adb.GetPushSizeInfo()
if self._push_deps:
- logging.info('Pushing data deps to device.')
+ logging.warning('Pushing data files to device.')
self.PushDataDeps()
+ push_size_after = self.adb.GetPushSizeInfo()
+ logging.warning(
+ 'Total data: %0.3fMB' %
+ ((push_size_after[0] - push_size_before[0]) / float(2 ** 20)))
+ logging.warning(
+ 'Total data transferred: %0.3fMB' %
+ ((push_size_after[1] - push_size_before[1]) / float(2 ** 20)))
else:
- logging.warning('Skipping pushing data deps to device.')
+ logging.warning('Skipping pushing data to device.')
def TearDown(self):
"""Run once after all tests are run."""
« no previous file with comments | « build/android/pylib/android_commands.py ('k') | build/android/pylib/gtest/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698