summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rwxr-xr-xpackage/linux/dfhack5
1 files changed, 5 insertions, 0 deletions
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=$?