Enable the stats configuration option by default.

This commit is contained in:
Jason Evans 2012-02-28 20:41:16 -08:00
parent c90ad71237
commit d073a32109
3 changed files with 4 additions and 7 deletions

View File

@ -62,8 +62,8 @@ any of the following arguments (not a definitive list) to 'configure':
Enable assertions and validation code. This incurs a substantial Enable assertions and validation code. This incurs a substantial
performance hit, but is very useful during application development. performance hit, but is very useful during application development.
--enable-stats --disable-stats
Enable statistics gathering functionality. See the "opt.stats_print" Disable statistics gathering functionality. See the "opt.stats_print"
option documentation for usage details. option documentation for usage details.
--enable-prof --enable-prof

View File

@ -423,7 +423,7 @@ if test "x$enable_debug" = "x0" -a "x$no_CFLAGS" = "xyes" ; then
fi fi
fi fi
dnl Do not enable statistics calculation by default. dnl Enable statistics calculation by default.
AC_ARG_ENABLE([stats], AC_ARG_ENABLE([stats],
[AS_HELP_STRING([--enable-stats], [Enable statistics calculation/reporting])], [AS_HELP_STRING([--enable-stats], [Enable statistics calculation/reporting])],
[if test "x$enable_stats" = "xno" ; then [if test "x$enable_stats" = "xno" ; then
@ -432,7 +432,7 @@ else
enable_stats="1" enable_stats="1"
fi fi
], ],
[enable_stats="0"] [enable_stats="1"]
) )
if test "x$enable_stats" = "x1" ; then if test "x$enable_stats" = "x1" ; then
AC_DEFINE([JEMALLOC_STATS], [ ]) AC_DEFINE([JEMALLOC_STATS], [ ])
@ -896,7 +896,6 @@ AC_MSG_RESULT([tcache : ${enable_tcache}])
AC_MSG_RESULT([fill : ${enable_fill}]) AC_MSG_RESULT([fill : ${enable_fill}])
AC_MSG_RESULT([xmalloc : ${enable_xmalloc}]) AC_MSG_RESULT([xmalloc : ${enable_xmalloc}])
AC_MSG_RESULT([dss : ${enable_dss}]) 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([lazy_lock : ${enable_lazy_lock}])
AC_MSG_RESULT([tls : ${enable_tls}]) AC_MSG_RESULT([tls : ${enable_tls}])
AC_MSG_RESULT([===============================================================================]) AC_MSG_RESULT([===============================================================================])

View File

@ -882,8 +882,6 @@ OOM:
} }
errno = ENOMEM; errno = ENOMEM;
} }
RETURN:
if (config_prof && opt_prof && ret != NULL) if (config_prof && opt_prof && ret != NULL)
prof_malloc(ret, usize, cnt); prof_malloc(ret, usize, cnt);
if (config_stats && ret != NULL) { if (config_stats && ret != NULL) {