Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Michael Sammler
ci
Commits
2ef6b22b
Commit
2ef6b22b
authored
Jun 22, 2018
by
Ralf Jung
Browse files
try putting time inside perf
parent
8324acef
Changes
1
Hide whitespace changes
Inline
Side-by-side
perf
View file @
2ef6b22b
...
...
@@ -3,6 +3,6 @@ set -e
# Wrapper script to use perf as TIMECMD for the build.
VFILE
=
"
${
!#
}
"
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"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment