2 export G_SLICE=always-malloc
3 export G_DEBUG=gc-friendly
7 libtool --mode=execute valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=20 mapper
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
14 libtool --mode=execute gdb mapper
17 libtool --mode=execute strace mapper
20 echo "Mode: valgrind or massif"