aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/grindem.sh
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-23 13:23:03 +1000
committerDavid Walter Seikel2014-05-23 13:23:03 +1000
commit2e8cde0d504a271101688a842541ce5043240f52 (patch)
tree870b64edc4c5245aa6a6e14a9784d15c486402f1 /grindem.sh
parentRewrite the LuaSL script running stuff (twice lol), plus much related tweakag... (diff)
downloadSledjHamr-2e8cde0d504a271101688a842541ce5043240f52.zip
SledjHamr-2e8cde0d504a271101688a842541ce5043240f52.tar.gz
SledjHamr-2e8cde0d504a271101688a842541ce5043240f52.tar.bz2
SledjHamr-2e8cde0d504a271101688a842541ce5043240f52.tar.xz
A tool for running valgrind on SledjHamr's bits.
Diffstat (limited to 'grindem.sh')
-rwxr-xr-xgrindem.sh40
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
29tool="memcheck"
30#tool="helgrind"
31#tool="drd"
32#extra=""
33extra="--leak-check=full"
34
35valgrind --tool=$tool --time-stamp=yes --log-file=valgrind_LuaSL.log $extra ./LuaSL &
36sleep 3
37valgrind --tool=$tool --time-stamp=yes --log-file=valgrind_love.log $extra ./love &
38sleep 3
39valgrind --tool=$tool --time-stamp=yes --log-file=valgrind_extantz.log $extra ./extantz
40