diff options
author | Craig Tiller <ctiller@google.com> | 2017-03-08 13:10:28 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-03-08 13:10:28 -0800 |
commit | 26995eb2ee277f098ea98f992e8257038f2dd3f8 (patch) | |
tree | a2dd8c49df506d3dba2d6d95155dbeae76740c22 | |
parent | b432885a565cac6cd9510c8ff05ed9eb2cc0458e (diff) |
Get filename right
-rwxr-xr-x | tools/run_tests/run_microbenchmark.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/run_tests/run_microbenchmark.py b/tools/run_tests/run_microbenchmark.py index 09f2eb180e..137e0beb7e 100755 --- a/tools/run_tests/run_microbenchmark.py +++ b/tools/run_tests/run_microbenchmark.py @@ -178,13 +178,15 @@ def run_summary(bm_name, cfg, base_json_name): def collect_summary(bm_name, args): heading('Summary: %s [no counters]' % bm_name) - text(run_summary(bm_name, 'opt', 'out')) + text(run_summary(bm_name, 'opt', bm_name)) heading('Summary: %s [with counters]' % bm_name) - text(run_summary(bm_name, 'counters', 'out')) + text(run_summary(bm_name, 'counters', bm_name)) if args.bigquery_upload: - with open('out.csv', 'w') as f: - f.write(subprocess.check_output(['tools/profiling/microbenchmarks/bm2bq.py', 'out.counters.json', 'out.opt.json'])) - subprocess.check_call(['bq', 'load', 'microbenchmarks.microbenchmarks', 'out.csv']) + with open('%s.csv' % bm_name, 'w') as f: + f.write(subprocess.check_output(['tools/profiling/microbenchmarks/bm2bq.py', + '%s.counters.json' % bm_name, + '%s.opt.json' % bm_name])) + subprocess.check_call(['bq', 'load', 'microbenchmarks.microbenchmarks', '%s.csv' % bm_name]) collectors = { 'latency': collect_latency, |