commit ad61ec9170c48bd1a9cf6923e6ed4872490fb9b0 Author: Philippe Makowski <pmakowski@espelida.com> Date: Sun Jul 3 14:43:14 2016 +0200 more-configuration-flags diff --git a/configure.ac b/configure.ac index 1c07c05..dd75555 100644 --- a/configure.ac +++ b/configure.ac @@ -3180,6 +3180,30 @@ else AC_MSG_RESULT(no) fi], [AC_MSG_RESULT(no)]) +AC_MSG_CHECKING(for --with-count-allocs) +AC_ARG_WITH(count-allocs, +[ --with(out)count-allocs enable/disable per-type instance accounting], [ +if test "$withval" != no +then + AC_DEFINE(COUNT_ALLOCS, 1, + [Define to keep records of the number of instances of each type]) + AC_MSG_RESULT(yes) +else AC_MSG_RESULT(no) +fi], +[AC_MSG_RESULT(no)]) + +AC_MSG_CHECKING(for --with-call-profile) +AC_ARG_WITH(call-profile, +[ --with(out)-call-profile enable/disable statistics on function call invocation], [ +if test "$withval" != no +then + AC_DEFINE(CALL_PROFILE, 1, + [Define to keep records on function call invocation]) + AC_MSG_RESULT(yes) +else AC_MSG_RESULT(no) +fi], +[AC_MSG_RESULT(no)]) + # Check for Python-specific malloc support AC_MSG_CHECKING(for --with-pymalloc) AC_ARG_WITH(pymalloc, diff --git a/pyconfig.h.in b/pyconfig.h.in index 7895535..d024050 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -12,6 +12,12 @@ support for AIX C++ shared extension modules. */ #undef AIX_GENUINE_CPLUSPLUS +/* Define to keep records on function call invocation */ +#undef CALL_PROFILE + +/* Define to keep records of the number of instances of each type */ +#undef COUNT_ALLOCS + /* Define if C doubles are 64-bit IEEE 754 binary format, stored in ARM mixed-endian order (byte order 45670123) */ #undef DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754