[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
This commit is contained in:
parent
5fc93b75d9
commit
7256f51b18
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue