diff options
author | David Walter Seikel | 2014-05-23 13:23:03 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-23 13:23:03 +1000 |
commit | 2e8cde0d504a271101688a842541ce5043240f52 (patch) | |
tree | 870b64edc4c5245aa6a6e14a9784d15c486402f1 | |
parent | Rewrite the LuaSL script running stuff (twice lol), plus much related tweakag... (diff) | |
download | SledjHamr-2e8cde0d504a271101688a842541ce5043240f52.zip SledjHamr-2e8cde0d504a271101688a842541ce5043240f52.tar.gz SledjHamr-2e8cde0d504a271101688a842541ce5043240f52.tar.bz2 SledjHamr-2e8cde0d504a271101688a842541ce5043240f52.tar.xz |
A tool for running valgrind on SledjHamr's bits.
-rwxr-xr-x | grindem.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/grindem.sh b/grindem.sh new file mode 100755 index 0000000..96edc5d --- /dev/null +++ b/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 | |||