]> err.no Git - mapper/blob - src/debug-mapper.sh
Fixes to gstreamer element and caps handlings.
[mapper] / src / debug-mapper.sh
1 #!/bin/sh
2 export G_SLICE=always-malloc
3 export G_DEBUG=gc-friendly
4
5 case "$1" in
6         valgrind)
7                 libtool --mode=execute valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=20 mapper
8         ;;
9         massif)
10                 libtool --mode=execute valgrind --tool=massif --depth=5 --alloc-fn=g_malloc --alloc-fn=g_realloc --alloc-fn=g_try_malloc \
11          --alloc-fn=g_malloc0 --alloc-fn=g_mem_chunk_alloc mapper
12         ;;
13         gdb)
14                 libtool --mode=execute gdb mapper
15         ;;
16         strace)
17                 libtool --mode=execute strace mapper
18         ;;
19         *)
20                 echo "Mode: valgrind or massif"
21         ;;
22 esac