diff options
author | Craig Tiller <ctiller@google.com> | 2017-03-06 16:13:04 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-03-06 16:13:04 -0800 |
commit | adade61028486f8b28bb4c65d8790cbf05e023f7 (patch) | |
tree | c065e67d5a7e8b9862475d9fceda114863b93c9e /tools/profiling/microbenchmarks/bm2bq.py | |
parent | b699640a773d74e07bbcf5ded4a86d14e49e1a04 (diff) | |
parent | 6d91f2d27b4d7b1dff94b21920f7764ade1c9936 (diff) |
Merge branch 'diff_perf' into nudiff
Diffstat (limited to 'tools/profiling/microbenchmarks/bm2bq.py')
-rwxr-xr-x | tools/profiling/microbenchmarks/bm2bq.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/profiling/microbenchmarks/bm2bq.py b/tools/profiling/microbenchmarks/bm2bq.py index ffb158a28d..7011e4492e 100755 --- a/tools/profiling/microbenchmarks/bm2bq.py +++ b/tools/profiling/microbenchmarks/bm2bq.py @@ -80,9 +80,15 @@ if sys.argv[1] == '--schema': with open(sys.argv[1]) as f: js = json.loads(f.read()) +if len(sys.argv) > 2: + with open(sys.argv[2]) as f: + js2 = json.loads(f.read()) +else: + js2 = None + writer = csv.DictWriter(sys.stdout, [c for c,t in columns]) -for row in bm_json.expand_json(js): +for row in bm_json.expand_json(js, js2): if 'label' in row: del row['label'] del row['cpp_name'] |