Added a shortcut for running yate through valgrind with the callgrind tool.

git-svn-id: http://yate.null.ro/svn/yate/trunk@4670 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2011-11-03 13:19:11 +00:00
parent 75f74f7443
commit 095fe9ae56
1 changed files with 7 additions and 1 deletions

8
run.in
View File

@ -37,6 +37,12 @@ if [ "$1" = "--valgrind" ]; then
yate="valgrind $1 $yate"
shift
fi
if [ "$1" = "--callgrind" ]; then
shift
export LD_BIND_NOW=yes
yate="valgrind --tool=callgrind --dump-instr=yes --simulate-cache=yes $1 $yate -Du"
shift
fi
for opt in $@; do
case "$opt" in
@ -51,5 +57,5 @@ for opt in $@; do
;;
esac
done
LD_LIBRARY_PATH=.@H323_RUN@:$LD_LIBRARY_PATH exec $yate $set_conf $set_mods $set_share "$@"