Blame 00113-more-configuration-flags.patch

e32ce18
diff -up Python-3.3.0b1/configure.ac.more-configuration-flags Python-3.3.0b1/configure.ac
e32ce18
--- Python-3.3.0b1/configure.ac.more-configuration-flags	2012-07-20 13:25:33.232864839 -0400
e32ce18
+++ Python-3.3.0b1/configure.ac	2012-07-20 13:25:33.314863815 -0400
e32ce18
@@ -2585,6 +2585,30 @@ else AC_MSG_RESULT(no)
e32ce18
 fi],
e32ce18
 [AC_MSG_RESULT(no)])
e32ce18
 
e32ce18
+AC_MSG_CHECKING(for --with-count-allocs)
e32ce18
+AC_ARG_WITH(count-allocs,
e32ce18
+[  --with(out)count-allocs  enable/disable per-type instance accounting], [
e32ce18
+if test "$withval" != no
e32ce18
+then 
e32ce18
+  AC_DEFINE(COUNT_ALLOCS, 1,
e32ce18
+    [Define to keep records of the number of instances of each type]) 
e32ce18
+    AC_MSG_RESULT(yes)
e32ce18
+else AC_MSG_RESULT(no)
e32ce18
+fi],
e32ce18
+[AC_MSG_RESULT(no)])
e32ce18
+
e32ce18
+AC_MSG_CHECKING(for --with-call-profile)
e32ce18
+AC_ARG_WITH(call-profile,
e32ce18
+[  --with(out)-call-profile  enable/disable statistics on function call invocation], [
e32ce18
+if test "$withval" != no
e32ce18
+then 
e32ce18
+  AC_DEFINE(CALL_PROFILE, 1, 
e32ce18
+    [Define to keep records on function call invocation]) 
e32ce18
+    AC_MSG_RESULT(yes)
e32ce18
+else AC_MSG_RESULT(no)
e32ce18
+fi],
e32ce18
+[AC_MSG_RESULT(no)])
e32ce18
+
e32ce18
 # Check for Python-specific malloc support
e32ce18
 AC_MSG_CHECKING(for --with-pymalloc)
e32ce18
 AC_ARG_WITH(pymalloc,
e32ce18
diff -up Python-3.3.0b1/pyconfig.h.in.more-configuration-flags Python-3.3.0b1/pyconfig.h.in
e32ce18
--- Python-3.3.0b1/pyconfig.h.in.more-configuration-flags	2012-07-20 13:25:33.000000000 -0400
e32ce18
+++ Python-3.3.0b1/pyconfig.h.in	2012-07-20 13:26:02.826494869 -0400
e32ce18
@@ -12,6 +12,12 @@
e32ce18
    support for AIX C++ shared extension modules. */
e32ce18
 #undef AIX_GENUINE_CPLUSPLUS
e32ce18
 
e32ce18
+/* Define to keep records on function call invocation */
e32ce18
+#undef CALL_PROFILE
e32ce18
+
e32ce18
+/* Define to keep records of the number of instances of each type */
e32ce18
+#undef COUNT_ALLOCS
e32ce18
+
e32ce18
 /* Define if C doubles are 64-bit IEEE 754 binary format, stored in ARM
e32ce18
    mixed-endian order (byte order 45670123) */
e32ce18
 #undef DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754