From ccd8ab9d731d18d9fa3d6c29ed6bb9c8ab220c5d Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sun, 8 Jul 2007 20:59:26 +0000 Subject: Added debugging code to generate multiple dungeons (all branches and levels) and gather statistics on maps used and Lua errors encountered. To use it, run "crawl -mapstat" with a full-debug build. Output will be mapgen.log in the current directory. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1805 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/debug.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source/debug.h') diff --git a/crawl-ref/source/debug.h b/crawl-ref/source/debug.h index 3e647052df..fe9efa0340 100644 --- a/crawl-ref/source/debug.h +++ b/crawl-ref/source/debug.h @@ -152,4 +152,12 @@ void debug_set_stats( void ); void debug_card(); +#ifdef DEBUG_DIAGNOSTICS +void generate_map_stats(); +class map_def; +void mapgen_report_map_try(const map_def &map); +void mapgen_report_map_use(const map_def &map); +void mapgen_report_error(const map_def &map, const std::string &err); +#endif + #endif -- cgit v1.2.3-54-g00ecf