From 39401798c36dbd29eef41e0ff06239435502c821 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Thu, 2 Feb 2017 12:22:07 -0800 Subject: [PATCH] Fix links --- tools/profiling/microbenchmark/bm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/profiling/microbenchmark/bm.py b/tools/profiling/microbenchmark/bm.py index 064bb7af1b4..a9277379c7b 100755 --- a/tools/profiling/microbenchmark/bm.py +++ b/tools/profiling/microbenchmark/bm.py @@ -74,7 +74,7 @@ for bm_name in sys.argv[1:]: 'CONFIG=basicprof', '-j', '%d' % multiprocessing.cpu_count()]) for line in subprocess.check_output(['bins/basicprof/%s' % bm_name, '--benchmark_list_tests']).splitlines(): - link(line, 'reports/%s.txt' % fnize(line)) + link(line, '%s.txt' % fnize(line)) with open('reports/%s.txt' % fnize(line), 'w') as f: f.write(subprocess.check_output(['bins/basicprof/%s' % bm_name, '--benchmark_filter=^%s$' % line])) @@ -99,7 +99,7 @@ for bm_name in sys.argv[1:]: with open('/tmp/bm.folded', 'w') as f: f.write(subprocess.check_output([ '%s/stackcollapse-perf.pl' % flamegraph_dir, '/tmp/bm.perf'])) - link(line, 'reports/%s.svg' % fnize(line)) + link(line, '%s.svg' % fnize(line)) with open('reports/%s.svg' % fnize(line), 'w') as f: f.write(subprocess.check_output([ '%s/flamegraph.pl' % flamegraph_dir, '/tmp/bm.folded']))