[Python-checkins] python/dist/src README, 1.181, 1.182 configure, 1.445, 1.446 configure.in, 1.456, 1.457 pyconfig.h.in, 1.96, 1.97

loewis at users.sourceforge.net loewis at users.sourceforge.net
Tue Jun 8 04:18:19 EDT 2004


Update of /cvsroot/python/python/dist/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29830

Modified Files:
	README configure configure.in pyconfig.h.in 
Log Message:
Patch #510695: Add TSC profiling for the VM.


Index: README
===================================================================
RCS file: /cvsroot/python/python/dist/src/README,v
retrieving revision 1.181
retrieving revision 1.182
diff -C2 -d -r1.181 -r1.182
*** README	9 May 2004 17:11:59 -0000	1.181
--- README	8 Jun 2004 08:17:30 -0000	1.182
***************
*** 1027,1030 ****
--- 1027,1031 ----
  	read it in universal newline mode. THIS OPTION IS UNSUPPORTED.
  
+ --with-tsc: Profile using the Pentium timestamping counter (TSC).
  
  Building for multiple architectures (using the VPATH feature)

Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.445
retrieving revision 1.446
diff -C2 -d -r1.445 -r1.446
*** configure	3 Jun 2004 12:41:38 -0000	1.445
--- configure	8 Jun 2004 08:17:34 -0000	1.446
***************
*** 1,4 ****
  #! /bin/sh
! # From configure.in Revision: 1.455 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.57 for python 2.4.
--- 1,4 ----
  #! /bin/sh
! # From configure.in Revision: 1.456 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.57 for python 2.4.
***************
*** 868,871 ****
--- 868,872 ----
    --with-pth              use GNU pth threading libraries
    --with(out)-doc-strings disable/enable documentation strings
+   --with(out)-tsc         enable/disable timestamp counter profile
    --with(out)-pymalloc    disable/enable specialized mallocs
    --with-wctype-functions use wctype.h functions
***************
*** 12007,12010 ****
--- 12008,12036 ----
  
  # Check for Python-specific malloc support
+ echo "$as_me:$LINENO: checking for --with-tsc" >&5
+ echo $ECHO_N "checking for --with-tsc... $ECHO_C" >&6
+ 
+ # Check whether --with-tsc or --without-tsc was given.
+ if test "${with_tsc+set}" = set; then
+   withval="$with_tsc"
+ 
+ if test "$withval" != no
+ then
+ 
+ cat >>confdefs.h <<\_ACEOF
+ #define WITH_TSC 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-pymalloc" >&5
  echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6

Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.456
retrieving revision 1.457
diff -C2 -d -r1.456 -r1.457
*** configure.in	3 Jun 2004 12:41:45 -0000	1.456
--- configure.in	8 Jun 2004 08:17:41 -0000	1.457
***************
*** 1930,1933 ****
--- 1930,1946 ----
  
  # Check for Python-specific malloc support
+ AC_MSG_CHECKING(for --with-tsc)
+ AC_ARG_WITH(tsc,
+ [  --with(out)-tsc         enable/disable timestamp counter profile], [
+ if test "$withval" != no
+ then 
+   AC_DEFINE(WITH_TSC, 1, 
+     [Define to profile with the Pentium timestamp counter]) 
+     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-pymalloc)
  AC_ARG_WITH(pymalloc,

Index: pyconfig.h.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/pyconfig.h.in,v
retrieving revision 1.96
retrieving revision 1.97
diff -C2 -d -r1.96 -r1.97
*** pyconfig.h.in	21 Mar 2004 23:45:42 -0000	1.96
--- pyconfig.h.in	8 Jun 2004 08:17:41 -0000	1.97
***************
*** 781,784 ****
--- 781,787 ----
  #undef WITH_THREAD
  
+ /* Define to profile with the Pentium timestamp counter */
+ #undef WITH_TSC
+ 
  /* Define to 1 if your processor stores words with the most significant byte
     first (like Motorola and SPARC, unlike Intel and VAX). */




More information about the Python-checkins mailing list