Debug WIP: Updated run with cachegrind script

This commit is contained in:
Allan Jeremy 2022-06-08 13:34:01 +03:00
parent 2cff4ddbc1
commit e3a3f794e6

View file

@ -25,10 +25,17 @@ now_ms() {
ITERATION_COUNT=$4 ITERATION_COUNT=$4
START_TIME=$(now_ms) START_TIME=$(now_ms)
ARGS=( "$@" )
REST_ARGS="${ARGS[@]:4}"
valgrind \ valgrind \
--quiet \ --quiet \
--tool=cachegrind \ --tool=cachegrind \
"$1" $2 >/dev/null "$1" "$2" "$REST_ARGS">/dev/null
ARGS=( "$@" )
REST_ARGS="${ARGS[@]:4}"
TIME_ELAPSED=$(bc <<< "$(now_ms) - ${START_TIME}") TIME_ELAPSED=$(bc <<< "$(now_ms) - ${START_TIME}")