mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Debug WIP: Updated run with cachegrind script
This commit is contained in:
parent
2cff4ddbc1
commit
e3a3f794e6
1 changed files with 8 additions and 1 deletions
|
@ -25,10 +25,17 @@ now_ms() {
|
|||
ITERATION_COUNT=$4
|
||||
START_TIME=$(now_ms)
|
||||
|
||||
ARGS=( "$@" )
|
||||
REST_ARGS="${ARGS[@]:4}"
|
||||
|
||||
valgrind \
|
||||
--quiet \
|
||||
--tool=cachegrind \
|
||||
"$1" $2 >/dev/null
|
||||
"$1" "$2" "$REST_ARGS">/dev/null
|
||||
|
||||
ARGS=( "$@" )
|
||||
REST_ARGS="${ARGS[@]:4}"
|
||||
|
||||
|
||||
TIME_ELAPSED=$(bc <<< "$(now_ms) - ${START_TIME}")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue