]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add note about profiling.
authorGuido van Rossum <guido@python.org>
Thu, 4 Oct 2001 17:00:07 +0000 (17:00 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 4 Oct 2001 17:00:07 +0000 (17:00 +0000)
README

diff --git a/README b/README
index ee9e5d2272ec811f72b5295cb0edcaf1741ab1ce..83f25e567cb81efa0bbe15fc01991a4ed35b4050 100644 (file)
--- a/README
+++ b/README
@@ -559,6 +559,21 @@ Additional debugging code to help debug memory management problems can
 be enabled by using the --with-pydebug option to the configure script.
 
 
+Profiling
+---------
+
+If you want C profiling turned on, the easiest way is to run configure
+with the CC environment variable to the necessary compiler
+invocation.  For example, on Linux, this works for profiling using
+gprof(1):
+
+    CC="gcc -pg" ./configure
+
+Note that on Linux, gprof apparently does not work for shared
+libraries.  The Makefile/Setup mechanism can be used to compile and
+link most extension module statically.
+
+
 Testing
 -------