| 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..65ea2617d3c1c29deae51e346619ba12c8c6f220 100644
|
| --- a/build/android/pylib/perf/test_runner.py
|
| +++ b/build/android/pylib/perf/test_runner.py
|
| @@ -81,6 +81,24 @@ 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):
|
| + logging.info('%s : No status file found', test_name)
|
| + continue
|
| + 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
|
|
|