summaryrefslogtreecommitdiff
path: root/Misc/SpecialBuilds.txt
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2004-08-12 18:19:17 +0000
committerMichael W. Hudson <mwh@python.net>2004-08-12 18:19:17 +0000
commit800ba2375a970ca6095465021aa4d8e72279cd9f (patch)
treef85f478e14f2da10f2104fee9e7106bc30cc5c54 /Misc/SpecialBuilds.txt
parentd459f536c50256e66bedf999c063d49f2a59fcc6 (diff)
downloadcpython-git-800ba2375a970ca6095465021aa4d8e72279cd9f.tar.gz
This is my patch:
[ 1005891 ] support --with-tsc on PPC plus a trivial change to settscdump's docstring and a Misc/NEWS entry.
Diffstat (limited to 'Misc/SpecialBuilds.txt')
-rw-r--r--Misc/SpecialBuilds.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/Misc/SpecialBuilds.txt b/Misc/SpecialBuilds.txt
index fc41767e38..3e05f81f5f 100644
--- a/Misc/SpecialBuilds.txt
+++ b/Misc/SpecialBuilds.txt
@@ -227,3 +227,28 @@ When this symbol is defined, the ceval mainloop and helper functions
count the number of function calls made. It keeps detailed statistics
about what kind of object was called and whether the call hit any of
the special fast paths in the code.
+
+---------------------------------------------------------------------------
+WITH_TSC introduced for Python 2.4
+
+Super-lowlevel profiling of the interpreter. When enabled, the sys
+module grows a new function:
+
+settscdump(bool)
+ If true, tell the Python interpreter to dump VM measurements to
+ stderr. If false, turn off dump. The measurements are based on the
+ processor's time-stamp counter.
+
+This build option requires a small amount of platform specific code.
+Currently this code is present for linux/x86 and any PowerPC platform
+that uses GCC (i.e. OS X and linux/ppc).
+
+On the PowerPC the rate at which the time base register is incremented
+is not defined by the architecture specification, so you'll need to
+find the manual for your specific processor. For the 750CX, 750CXe,
+750FX (all sold as the G3) we find:
+
+ The time base counter is clocked at a frequency that is
+ one-fourth that of the bus clock.
+
+This build is enabled by the --with-tsc flag to configure.