mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Enable the stats configuration option by default.
This commit is contained in:
parent
c90ad71237
commit
d073a32109
3 changed files with 4 additions and 7 deletions
4
INSTALL
4
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
|
||||
|
|
|
|||
|
|
@ -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([===============================================================================])
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue