diff options
author | Chris Bieneman <beanz@apple.com> | 2016-07-29 22:48:17 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2016-07-29 22:48:17 +0000 |
commit | c3c1ac7968b40c29a360d269a9f3ad290586341a (patch) | |
tree | b1514bf49ff6956896c70f4ca33629ea2955a9f7 /utils | |
parent | efed26fc0a608ac3d02f3207ebc2a4f2cb339e2f (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r-- | utils/perf-training/perf-helper.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/perf-training/perf-helper.py b/utils/perf-training/perf-helper.py index c7c4bddf89..0dc280de75 100644 --- a/utils/perf-training/perf-helper.py +++ b/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 |