churchyard / rpms / python38

Forked from rpms/python38 5 years ago
Clone
021b2bc
diff -up Python-3.1.2/configure.in.more-configuration-flags Python-3.1.2/configure.in
021b2bc
--- Python-3.1.2/configure.in.more-configuration-flags	2010-05-25 12:16:48.602875960 -0400
021b2bc
+++ Python-3.1.2/configure.in	2010-05-25 12:16:48.609879553 -0400
021b2bc
@@ -2443,6 +2443,30 @@ else AC_MSG_RESULT(no)
021b2bc
 fi],
021b2bc
 [AC_MSG_RESULT(no)])
021b2bc
 
021b2bc
+AC_MSG_CHECKING(for --with-count-allocs)
021b2bc
+AC_ARG_WITH(count-allocs,
021b2bc
+[  --with(out)count-allocs  enable/disable per-type instance accounting], [
021b2bc
+if test "$withval" != no
021b2bc
+then 
021b2bc
+  AC_DEFINE(COUNT_ALLOCS, 1,
021b2bc
+    [Define to keep records of the number of instances of each type]) 
021b2bc
+    AC_MSG_RESULT(yes)
021b2bc
+else AC_MSG_RESULT(no)
021b2bc
+fi],
021b2bc
+[AC_MSG_RESULT(no)])
021b2bc
+
021b2bc
+AC_MSG_CHECKING(for --with-call-profile)
021b2bc
+AC_ARG_WITH(call-profile,
021b2bc
+[  --with(out)-call-profile  enable/disable statistics on function call invocation], [
021b2bc
+if test "$withval" != no
021b2bc
+then 
021b2bc
+  AC_DEFINE(CALL_PROFILE, 1, 
021b2bc
+    [Define to keep records on function call invocation]) 
021b2bc
+    AC_MSG_RESULT(yes)
021b2bc
+else AC_MSG_RESULT(no)
021b2bc
+fi],
021b2bc
+[AC_MSG_RESULT(no)])
021b2bc
+
021b2bc
 # Check for Python-specific malloc support
021b2bc
 AC_MSG_CHECKING(for --with-pymalloc)
021b2bc
 AC_ARG_WITH(pymalloc,
021b2bc
diff -up Python-3.1.2/pyconfig.h.in.more-configuration-flags Python-3.1.2/pyconfig.h.in
021b2bc
--- Python-3.1.2/pyconfig.h.in.more-configuration-flags	2010-05-25 12:16:48.000000000 -0400
021b2bc
+++ Python-3.1.2/pyconfig.h.in	2010-05-25 12:17:54.428126399 -0400
021b2bc
@@ -18,6 +18,12 @@
021b2bc
 /* Define if you have the Mach cthreads package */
021b2bc
 #undef C_THREADS
021b2bc
 
021b2bc
+/* Define to keep records on function call invocation */
021b2bc
+#undef CALL_PROFILE
021b2bc
+
021b2bc
+/* Define to keep records of the number of instances of each type */
021b2bc
+#undef COUNT_ALLOCS
021b2bc
+
021b2bc
 /* Define if C doubles are 64-bit IEEE 754 binary format, stored in ARM
021b2bc
    mixed-endian order (byte order 45670123) */
021b2bc
 #undef DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754