Blame SOURCES/00113-more-configuration-flags.patch

c8ca20
diff -up Python-2.6.5/configure.ac.more-configuration-flags Python-2.6.5/configure.ac
c8ca20
--- Python-2.6.5/configure.ac.more-configuration-flags	2010-05-24 18:51:25.410111792 -0400
c8ca20
+++ Python-2.6.5/configure.ac	2010-05-24 18:59:23.954986388 -0400
c8ca20
@@ -2515,6 +2515,30 @@ else AC_MSG_RESULT(no)
c8ca20
 fi],
c8ca20
 [AC_MSG_RESULT(no)])
c8ca20
 
c8ca20
+AC_MSG_CHECKING(for --with-count-allocs)
c8ca20
+AC_ARG_WITH(count-allocs,
c8ca20
+[  --with(out)count-allocs  enable/disable per-type instance accounting], [
c8ca20
+if test "$withval" != no
c8ca20
+then 
c8ca20
+  AC_DEFINE(COUNT_ALLOCS, 1,
c8ca20
+    [Define to keep records of the number of instances of each type]) 
c8ca20
+    AC_MSG_RESULT(yes)
c8ca20
+else AC_MSG_RESULT(no)
c8ca20
+fi],
c8ca20
+[AC_MSG_RESULT(no)])
c8ca20
+
c8ca20
+AC_MSG_CHECKING(for --with-call-profile)
c8ca20
+AC_ARG_WITH(call-profile,
c8ca20
+[  --with(out)-call-profile  enable/disable statistics on function call invocation], [
c8ca20
+if test "$withval" != no
c8ca20
+then 
c8ca20
+  AC_DEFINE(CALL_PROFILE, 1, 
c8ca20
+    [Define to keep records on function call invocation]) 
c8ca20
+    AC_MSG_RESULT(yes)
c8ca20
+else AC_MSG_RESULT(no)
c8ca20
+fi],
c8ca20
+[AC_MSG_RESULT(no)])
c8ca20
+
c8ca20
 # Check for Python-specific malloc support
c8ca20
 AC_MSG_CHECKING(for --with-pymalloc)
c8ca20
 AC_ARG_WITH(pymalloc,
c8ca20
diff -up Python-2.6.5/pyconfig.h.in.more-configuration-flags Python-2.6.5/pyconfig.h.in
c8ca20
--- Python-2.6.5/pyconfig.h.in.more-configuration-flags	2010-05-24 18:51:45.677988086 -0400
c8ca20
+++ Python-2.6.5/pyconfig.h.in	2010-05-24 19:00:44.163987730 -0400
c8ca20
@@ -1019,6 +1019,12 @@
c8ca20
 /* Define to profile with the Pentium timestamp counter */
c8ca20
 #undef WITH_TSC
c8ca20
 
c8ca20
+/* Define to keep records of the number of instances of each type */
c8ca20
+#undef COUNT_ALLOCS
c8ca20
+
c8ca20
+/* Define to keep records on function call invocation */
c8ca20
+#undef CALL_PROFILE
c8ca20
+
c8ca20
 /* Define if you want pymalloc to be disabled when running under valgrind */
c8ca20
 #undef WITH_VALGRIND
c8ca20