[Python-checkins] python/dist/src pyconfig.h.in, 1.97,
1.98 configure, 1.447, 1.448 configure.in, 1.458, 1.459
mondragon at users.sourceforge.net
mondragon at users.sourceforge.net
Mon Jun 21 23:51:42 EDT 2004
Update of /cvsroot/python/python/dist/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12985
Modified Files:
pyconfig.h.in configure configure.in
Log Message:
Making C profiling a configure option (at least temporarily)
Index: pyconfig.h.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/pyconfig.h.in,v
retrieving revision 1.97
retrieving revision 1.98
diff -C2 -d -r1.97 -r1.98
*** pyconfig.h.in 8 Jun 2004 08:17:41 -0000 1.97
--- pyconfig.h.in 22 Jun 2004 03:51:31 -0000 1.98
***************
*** 760,763 ****
--- 760,766 ----
#undef WINDOW_HAS_FLAGS
+ /* Define to enable profile hooks for C extension functions and builtins */
+ #undef WITH_C_PROF
+
/* Define if you want documentation strings in extension modules */
#undef WITH_DOC_STRINGS
Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.447
retrieving revision 1.448
diff -C2 -d -r1.447 -r1.448
*** configure 18 Jun 2004 02:47:15 -0000 1.447
--- configure 22 Jun 2004 03:51:32 -0000 1.448
***************
*** 1,4 ****
#! /bin/sh
! # From configure.in Revision: 1.457 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for python 2.4.
--- 1,4 ----
#! /bin/sh
! # From configure.in Revision: 1.458 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for python 2.4.
***************
*** 870,873 ****
--- 870,874 ----
--with-pth use GNU pth threading libraries
--with(out)-doc-strings disable/enable documentation strings
+ --with-c-profiling Enable profiling of builtins and C extension functions
--with(out)-tsc enable/disable timestamp counter profile
--with(out)-pymalloc disable/enable specialized mallocs
***************
*** 13030,13033 ****
--- 13031,13059 ----
echo "${ECHO_T}$with_doc_strings" >&6
+ # Check for C call profiling support
+ echo "$as_me:$LINENO: checking for --with-c-profiling" >&5
+ echo $ECHO_N "checking for --with-c-profiling... $ECHO_C" >&6
+
+ # Check whether --with-c-profiling or --without-c-profiling was given.
+ if test "${with_c_profiling+set}" = set; then
+ withval="$with_c_profiling"
+
+ if test "$withval" != no
+ then
+
+ cat >>confdefs.h <<\_ACEOF
+ #define WITH_C_PROF 1
+ _ACEOF
+
+ echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+ else echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6
+ fi
+ else
+ echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6
+ fi;
+
# Check for Python-specific malloc support
echo "$as_me:$LINENO: checking for --with-tsc" >&5
Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.458
retrieving revision 1.459
diff -C2 -d -r1.458 -r1.459
*** configure.in 18 Jun 2004 02:47:21 -0000 1.458
--- configure.in 22 Jun 2004 03:51:37 -0000 1.459
***************
*** 1947,1950 ****
--- 1947,1963 ----
AC_MSG_RESULT($with_doc_strings)
+ # Check for C call profiling support
+ AC_MSG_CHECKING(for --with-c-profiling)
+ AC_ARG_WITH(c-profiling,
+ [ --with-c-profiling Enable profiling of builtins and C extension functions], [
+ if test "$withval" != no
+ then
+ AC_DEFINE(WITH_C_PROF, 1,
+ [Define to enable profile hooks for C extension functions and builtins])
+ 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-tsc)
More information about the Python-checkins
mailing list