diff options
| author | Petr Mrázek | 2011-07-21 11:29:26 +0200 |
|---|---|---|
| committer | Petr Mrázek | 2011-07-21 11:29:26 +0200 |
| commit | 262a5c9da3653b4cb6aef2172287b55886570702 (patch) | |
| tree | 2c2829271a4d8da02ae6afa2aeb7647c01b496ce | |
| parent | 9582af667bd8131d1e6916a488678a8afd05844f (diff) | |
| download | dfhack-262a5c9da3653b4cb6aef2172287b55886570702.tar.gz dfhack-262a5c9da3653b4cb6aef2172287b55886570702.tar.bz2 dfhack-262a5c9da3653b4cb6aef2172287b55886570702.tar.xz | |
Callgrind in dfhack script, added an option for building stonesense.
| -rwxr-xr-x | package/linux/dfhack | 5 | ||||
| -rw-r--r-- | plugins/CMakeLists.txt | 7 |
2 files changed, 12 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=$? diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 477dd57e..60f57ab3 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -102,6 +102,12 @@ if(BUILD_QTPLUG) add_subdirectory (qtplug) endif() +OPTION(BUILD_STONESENSE "Build stonesense (needs a checkout first)." OFF) +if(BUILD_STONESENSE) + add_subdirectory (stonesense) +endif() + + OPTION(BUILD_KITTENS "Build the kittens plugin." OFF) if(BUILD_KITTENS) DFHACK_PLUGIN(kittens kittens.cpp) @@ -114,6 +120,7 @@ IF(UNIX) endif() endif() + DFHACK_PLUGIN(reveal reveal.cpp) DFHACK_PLUGIN(prospector prospector.cpp) DFHACK_PLUGIN(cleanmap cleanmap.cpp) |
