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 6f0d39b95f87aae0b895dc4d21e32325d0dfd5ca..f0a049f2ac31ee8c1a74436e5246931a267f8315 100644 |
--- a/build/android/pylib/perf/test_runner.py |
+++ b/build/android/pylib/perf/test_runner.py |
@@ -81,6 +81,23 @@ def PrintTestOutput(test_name): |
return persisted_result['exit_code'] |
+def PrintSummary(test_names): |
+ logging.info('*' * 80) |
+ logging.info('Sharding summary') |
+ total_time = 0 |
+ for test_name in test_names: |
+ file_name = os.path.join(constants.PERF_OUTPUT_DIR, test_name) |
+ if not os.path.exists(file_name): |
+ continue |
rmcilroy
2014/02/14 15:48:40
Do we want to print something out here (e.g., "<te
bulach
2014/02/14 16:08:13
good one! done.
|
+ with file(file_name, 'r') as f: |
+ result = pickle.loads(f.read()) |
+ logging.info('%s : exit_code=%d in %d secs at %s', |
+ result['name'], result['exit_code'], result['total_time'], |
+ result['device']) |
+ total_time += result['total_time'] |
+ logging.info('Total steps time: %d secs', total_time) |
+ |
+ |
class _HeartBeatLogger(object): |
# How often to print the heartbeat on flush(). |
_PRINT_INTERVAL = 30.0 |