From 262a5c9da3653b4cb6aef2172287b55886570702 Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Thu, 21 Jul 2011 11:29:26 +0200 Subject: Callgrind in dfhack script, added an option for building stonesense. --- package/linux/dfhack | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'package') diff --git a/package/linux/dfhack b/package/linux/dfhack index 46d32f52..28ec21e9 100755 --- a/package/linux/dfhack +++ b/package/linux/dfhack @@ -53,6 +53,11 @@ case "$1" in LD_PRELOAD=./libdfhack.so valgrind $DF_VALGRIND_OPTS --log-file=valgrind.log ./libs/Dwarf_Fortress $* ret=$? ;; + -c | --callgrind) + shift + LD_PRELOAD=./libdfhack.so valgrind $DF_CALLGRIND_OPTS --tool=callgrind --separate-threads=yes --dump-instr=yes --instr-atstart=no --log-file=callgrind.log ./libs/Dwarf_Fortress $* + ret=$? + ;; *) LD_PRELOAD=./libdfhack.so ./libs/Dwarf_Fortress $* ret=$? -- cgit v1.2.1