r277234 - [Perf-Helper] Add logging for dtrace commands
Chris Bieneman via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 29 15:48:17 PDT 2016
Author: cbieneman
Date: Fri Jul 29 17:48:17 2016
New Revision: 277234
URL: http://llvm.org/viewvc/llvm-project?rev=277234&view=rev
Log:
[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.
Modified:
cfe/trunk/utils/perf-training/perf-helper.py
Modified: cfe/trunk/utils/perf-training/perf-helper.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/perf-training/perf-helper.py?rev=277234&r1=277233&r2=277234&view=diff
==============================================================================
--- cfe/trunk/utils/perf-training/perf-helper.py (original)
+++ cfe/trunk/utils/perf-training/perf-helper.py Fri Jul 29 17:48:17 2016
@@ -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
More information about the cfe-commits
mailing list