aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-02-09 22:59:11 -0800
committerGravatar GitHub <noreply@github.com>2017-02-09 22:59:11 -0800
commitbc185e30a786eff01afb97c67efd677a2f54c9d1 (patch)
tree71bd68258c9542cbc8b272de07146a7520bd29ce
parentbdf3f00bb554d0560c4dc7ea2ccb7f34a087054c (diff)
parent557443ea83b91e4ee2210d708228f3b1ca3b2565 (diff)
Merge pull request #9667 from ctiller/no_tmp
Avoid /tmp
-rwxr-xr-xtools/run_tests/run_microbenchmark.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/run_tests/run_microbenchmark.py b/tools/run_tests/run_microbenchmark.py
index 096d7d78ab..e0c62c81a8 100755
--- a/tools/run_tests/run_microbenchmark.py
+++ b/tools/run_tests/run_microbenchmark.py
@@ -126,15 +126,15 @@ for bm_name in sys.argv[1:]:
'bins/mutrace/%s' % bm_name,
'--benchmark_filter=^%s$' % line,
'--benchmark_min_time=20'])
- with open('/tmp/bm.perf', 'w') as f:
+ with open('bm.perf', 'w') as f:
f.write(subprocess.check_output(['sudo', 'perf', 'script']))
- with open('/tmp/bm.folded', 'w') as f:
+ with open('bm.folded', 'w') as f:
f.write(subprocess.check_output([
- '%s/stackcollapse-perf.pl' % flamegraph_dir, '/tmp/bm.perf']))
+ '%s/stackcollapse-perf.pl' % flamegraph_dir, 'bm.perf']))
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']))
+ '%s/flamegraph.pl' % flamegraph_dir, 'bm.folded']))
index_html += "</body>\n</html>\n"
with open('reports/index.html', 'w') as f: