summaryrefslogtreecommitdiffstats
path: root/clang/utils/perf-training
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-07-29 22:48:17 +0000
committerChris Bieneman <beanz@apple.com>2016-07-29 22:48:17 +0000
commit7256f51b1898ebaffef9d355280946020a0c1b19 (patch)
tree3b2425828cc702c563447ac34f753f746e24ad76 /clang/utils/perf-training
parent5fc93b75d941972e7879840ece9bac4bf49688f1 (diff)
downloadbcm5719-llvm-7256f51b1898ebaffef9d355280946020a0c1b19.tar.gz
bcm5719-llvm-7256f51b1898ebaffef9d355280946020a0c1b19.zip
[Perf-Helper] Add logging for dtrace commands
Logging the dtrace command into the top of the dtrace log is useful when debugging why the order file generation is flaky. llvm-svn: 277234
Diffstat (limited to 'clang/utils/perf-training')
-rw-r--r--clang/utils/perf-training/perf-helper.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/utils/perf-training/perf-helper.py b/clang/utils/perf-training/perf-helper.py
index c7c4bddf895..0dc280de753 100644
--- a/clang/utils/perf-training/perf-helper.py
+++ b/clang/utils/perf-training/perf-helper.py
@@ -102,6 +102,7 @@ def dtrace(args):
start_time = time.time()
with open("%d.dtrace" % os.getpid(), "w") as f:
+ f.write("### Command: %s" % dtrace_args)
subprocess.check_call(dtrace_args, stdout=f, stderr=subprocess.PIPE)
elapsed = time.time() - start_time
OpenPOWER on IntegriCloud