From 2e8cde0d504a271101688a842541ce5043240f52 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 23 May 2014 13:23:03 +1000 Subject: A tool for running valgrind on SledjHamr's bits. --- grindem.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 grindem.sh (limited to 'grindem.sh') diff --git a/grindem.sh b/grindem.sh new file mode 100755 index 0000000..96edc5d --- /dev/null +++ b/grindem.sh @@ -0,0 +1,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 + -- cgit v1.1