diff options
Diffstat (limited to 'bin/grindem.sh')
-rwxr-xr-x | bin/grindem.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/bin/grindem.sh b/bin/grindem.sh new file mode 100755 index 0000000..96edc5d --- /dev/null +++ b/bin/grindem.sh | |||
@@ -0,0 +1,40 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # Memory checker, and the default tool. | ||
4 | # --tool=memcheck --leak-check=full | ||
5 | # --track-origins=yes | ||
6 | |||
7 | # Cache and branch prediction profiler, analyse speed issues. | ||
8 | # --tool=cachegrind | ||
9 | # --branch-sim=yes | ||
10 | |||
11 | # Heap profiler, check memory sizes. | ||
12 | # --tool=massif | ||
13 | |||
14 | # Heap profiler. | ||
15 | # --tool=dhat | ||
16 | |||
17 | # "Call-graph generating cache profiler", complements cachegrind. | ||
18 | # --tool=callgrind | ||
19 | |||
20 | # Thread error detector. | ||
21 | # --tool=helgrind | ||
22 | |||
23 | # Thread error detector. | ||
24 | # --tool=drd | ||
25 | |||
26 | # "experimental tool that can detect overruns of stack and global arrays" | ||
27 | # --tool=sgcheck | ||
28 | |||
29 | tool="memcheck" | ||
30 | #tool="helgrind" | ||
31 | #tool="drd" | ||
32 | #extra="" | ||
33 | extra="--leak-check=full" | ||
34 | |||
35 | valgrind --tool=$tool --time-stamp=yes --log-file=valgrind_LuaSL.log $extra ./LuaSL & | ||
36 | sleep 3 | ||
37 | valgrind --tool=$tool --time-stamp=yes --log-file=valgrind_love.log $extra ./love & | ||
38 | sleep 3 | ||
39 | valgrind --tool=$tool --time-stamp=yes --log-file=valgrind_extantz.log $extra ./extantz | ||
40 | |||