Added valgrind helper scripts.

This commit is contained in:
Doncho Gunchev 2014-12-17 01:48:21 +08:00
parent a84ef39ed8
commit 446115daef
3 changed files with 16 additions and 0 deletions

4
devel/CALLGRIND Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
G_SLICE=always-malloc G_DEBUG=gc-friendly \
valgrind --tool=callgrind --trace-children=no --num-callers=32 --track-fds=yes --error-exitcode=1 --dump-instr=yes --collect-jumps=yes --simulate-cache=yes --simulate-hwpref=yes "$@"

5
devel/HELLGRIND Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
# G_SLICE=always-malloc G_DEBUG=gc-friendly \
valgrind --tool=helgrind --track-lockorders=yes --history-level=full --conflict-cache-size=1000000 "$@"

7
devel/VALGRIND Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
# track-origins=yes is veeeery slow
G_SLICE=always-malloc G_DEBUG=gc-friendly \
/usr/bin/valgrind --tool=memcheck --trace-children=no --leak-check=full --leak-resolution=high --num-callers=32 --max-stackframe=20982960 \
--track-fds=yes --track-origins=no --db-command="cgdb -nw %f %p" --error-exitcode=1 --show-reachable=no --db-attach=yes "$@"