2015-10-14 04:06:26 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-09-20 04:47:51 +02:00
|
|
|
if [ -z "$1" ]
|
|
|
|
then
|
|
|
|
PROG="../examples/.libs/ui"
|
|
|
|
else
|
|
|
|
PROG="$1"
|
|
|
|
shift
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Is the file executable?
|
|
|
|
test ! -x "$PROG" && echo "No executable file not found" && exit -1
|
|
|
|
|
|
|
|
|
|
|
|
LD_LIBRARY_PATH=../src/.libs/ valgrind --tool=callgrind -v "$PROG" 2>/dev/null
|
2015-10-14 04:06:26 +02:00
|
|
|
kcachegrind
|
|
|
|
rm -f callgrind.out.*
|
|
|
|
|