Commit 2ef6b22b authored by Ralf Jung's avatar Ralf Jung
Browse files

try putting time inside perf

parent 8324acef
......@@ -3,6 +3,6 @@ set -e
# Wrapper script to use perf as TIMECMD for the build.
LC_ALL=C /usr/bin/time -o "$VFILE.time" -f "real: %e, user: %U, sys: %S, mem: %M kB" -- perf stat -o "$VFILE.counters" -x ';' -e instructions,cycles -- "$@"
LC_ALL=C perf stat -o "$VFILE.counters" -x ';' -e instructions,cycles -- /usr/bin/time -o "$VFILE.time" -f "real: %e, user: %U, sys: %S, mem: %M kB" -- "$@"
(echo "## $VFILE" && (cat "$VFILE.counters" | egrep -v '^(# .*)?$') && cat "$VFILE.time" && echo) > "$VFILE.perf"
rm "$VFILE.counters" "$VFILE.time"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment