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:
parent
75f74f7443
commit
095fe9ae56
8
run.in
8
run.in
|
@ -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 "$@"
|
||||
|
|
Loading…
Reference in New Issue