valgrind_run 246 Bytes
Newer Older
1
#!/bin/sh
2 3 4 5 6

ENV="$1"

shift 1

7 8 9 10 11
CMD="$ENV valgrind --num-callers=30
--trace-children=yes --log-file=valgrind.%p.log
${VALGRIND_OPT- --time-stamp=yes --track-fds=yes --read-var-info=yes --track-origins=yes --leak-check=yes}
$@"

12 13
echo $CMD
eval $CMD