13
0

fun with valgrind

This commit is contained in:
Robin Gareus 2015-10-27 11:15:34 +01:00
parent 3e3a5e1cff
commit 1de4ed937c
2 changed files with 15 additions and 3 deletions

12
gtk2_ardour/arhell Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
#HELGRIND_OPTIONS="$VALGRIND_OPTIONS --free-is-write=yes"
#HELGRIND_OPTIONS="$VALGRIND_OPTIONS --history-level=approx"
HELGRIND_OPTIONS="$VALGRIND_OPTIONS --log-file=/tmp/ardour-%p.log"
TOP=`dirname "$0"`/..
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
export ARDOUR_RUNNING_UNDER_VALGRIND=TRUE
exec valgrind --tool=helgrind \
--error-limit=no --num-callers=50 \
$HELGRIND_OPTIONS \
$TOP/$EXECUTABLE --novst "$@"

View File

@ -1,11 +1,11 @@
#!/bin/sh
MASSIF_OPTIONS="$MASSIF_OPTIONS --time-unit=ms"
TOP=`dirname "$0"`/..
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export ARDOUR_RUNNING_UNDER_VALGRIND=TRUE
exec valgrind \
--tool=massif \
exec valgrind --tool=massif \
$MASSIF_OPTIONS \
$TOP/$EXECUTABLE --novst "$@"
# analyse output with