Skip to content

Commit

Permalink
tl-tester: Log time of sub sections
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Sep 23, 2024
1 parent afdad6b commit 076a360
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tl-tester
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ EOL

run() {
set +x
times > times$$
tail -1 times$$ | sed "s/^/times ${CUR:-init} /"
rm times$$
date +%s | sed "s/^/abstime ${CUR:-init} /"
if [ -n "$RUN" ] ; then
case "$1" in $RUN) ;; *) set -x ; return 1 ; esac
fi
Expand Down Expand Up @@ -796,6 +800,11 @@ done

fi # cpu2

# just for accounting
if run final ; then
echo final
fi # final

trap "" ERR 0

set +x +e
Expand Down

0 comments on commit 076a360

Please sign in to comment.