From d073a321091800e71ea56f98701253dc0969d879 Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Tue, 28 Feb 2012 20:41:16 -0800 Subject: [PATCH] Enable the stats configuration option by default. --- INSTALL | 4 ++-- configure.ac | 5 ++--- src/jemalloc.c | 2 -- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/INSTALL b/INSTALL index f9c8a369..b84fb1bf 100644 --- a/INSTALL +++ b/INSTALL @@ -62,8 +62,8 @@ any of the following arguments (not a definitive list) to 'configure': Enable assertions and validation code. This incurs a substantial performance hit, but is very useful during application development. ---enable-stats - Enable statistics gathering functionality. See the "opt.stats_print" +--disable-stats + Disable statistics gathering functionality. See the "opt.stats_print" option documentation for usage details. --enable-prof diff --git a/configure.ac b/configure.ac index 3fa24919..78f7c8e5 100644 --- a/configure.ac +++ b/configure.ac @@ -423,7 +423,7 @@ if test "x$enable_debug" = "x0" -a "x$no_CFLAGS" = "xyes" ; then fi fi -dnl Do not enable statistics calculation by default. +dnl Enable statistics calculation by default. AC_ARG_ENABLE([stats], [AS_HELP_STRING([--enable-stats], [Enable statistics calculation/reporting])], [if test "x$enable_stats" = "xno" ; then @@ -432,7 +432,7 @@ else enable_stats="1" fi ], -[enable_stats="0"] +[enable_stats="1"] ) if test "x$enable_stats" = "x1" ; then AC_DEFINE([JEMALLOC_STATS], [ ]) @@ -896,7 +896,6 @@ AC_MSG_RESULT([tcache : ${enable_tcache}]) AC_MSG_RESULT([fill : ${enable_fill}]) AC_MSG_RESULT([xmalloc : ${enable_xmalloc}]) AC_MSG_RESULT([dss : ${enable_dss}]) -AC_MSG_RESULT([dynamic_page_shift : ${enable_dynamic_page_shift}]) AC_MSG_RESULT([lazy_lock : ${enable_lazy_lock}]) AC_MSG_RESULT([tls : ${enable_tls}]) AC_MSG_RESULT([===============================================================================]) diff --git a/src/jemalloc.c b/src/jemalloc.c index cc0188c1..a3a9a70a 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -882,8 +882,6 @@ OOM: } errno = ENOMEM; } - -RETURN: if (config_prof && opt_prof && ret != NULL) prof_malloc(ret, usize, cnt); if (config_stats && ret != NULL) {