aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/grindem.sh
blob: 96edc5d156b0f905e0fc736bac8a9f718d60eede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash

# Memory checker, and the default tool.
# --tool=memcheck --leak-check=full
#                 --track-origins=yes

# Cache and branch prediction profiler, analyse speed issues.
# --tool=cachegrind
#                 --branch-sim=yes

# Heap profiler, check memory sizes.
# --tool=massif

# Heap profiler.
# --tool=dhat

# "Call-graph generating cache profiler", complements cachegrind.
# --tool=callgrind

# Thread error detector.
# --tool=helgrind

# Thread error detector.
# --tool=drd

# "experimental tool that can detect overruns of stack and global arrays"
# --tool=sgcheck

tool="memcheck"
#tool="helgrind"
#tool="drd"
#extra=""
extra="--leak-check=full"

valgrind --tool=$tool --time-stamp=yes --log-file=valgrind_LuaSL.log   $extra ./LuaSL &
sleep 3
valgrind --tool=$tool --time-stamp=yes --log-file=valgrind_love.log    $extra ./love &
sleep 3
valgrind --tool=$tool --time-stamp=yes --log-file=valgrind_extantz.log $extra ./extantz