From a68ca35a8bc56d572ac6ab343ce6359bbd3ab5cc Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 4 Oct 2001 17:00:07 +0000 Subject: Add note about profiling. --- README | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README b/README index ee9e5d2..83f25e5 100644 --- 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 ------- -- cgit v0.12