summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-23 18:42:46 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-23 18:42:46 +0000
commit798b1b3431ccf345a93bd01413a64d272e530c6c (patch)
tree2aee80048c9615a438fe362f79a8fb5c3b22eeee /configure.ac
parenta25686672d1ca40a856292ee65f45e0e736a7a8f (diff)
-add option to make expensive heap stat gathering optional
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 28a23f8f0..3caaf253a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -999,6 +999,15 @@ AC_ARG_ENABLE([experimental],
AC_MSG_RESULT($enable_experimental)
AM_CONDITIONAL([HAVE_EXPERIMENTAL], [test "x$enable_experimental" = "xyes"])
+# should memory statistics be kept (very expensive CPU-wise!)
+AC_MSG_CHECKING(whether to create expensive statistics on memory use)
+AC_ARG_ENABLE([heapstats],
+ [AS_HELP_STRING([--enable-heapstats], [enable expensive heap statistics])],
+ [enable_heapstats=1],
+ [enable_heapstats=0])
+AC_MSG_RESULT($enable_heapstats)
+AC_DEFINE_UNQUOTED([ENABLE_HEAP_STATISTICS],$enable_heapstats,[enable expensive heap statistics])
+
# should code be enabled that works around missing OS functionality on Windows?
# used for test cases
if test $build_target = "mingw"