torsava / rpms / python3

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