Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a68ca35

Browse files
committed
Add note about profiling.
1 parent 0e8427e commit a68ca35

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

README

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,21 @@ Additional debugging code to help debug memory management problems can
559559
be enabled by using the --with-pydebug option to the configure script.
560560

561561

562+
Profiling
563+
---------
564+
565+
If you want C profiling turned on, the easiest way is to run configure
566+
with the CC environment variable to the necessary compiler
567+
invocation. For example, on Linux, this works for profiling using
568+
gprof(1):
569+
570+
CC="gcc -pg" ./configure
571+
572+
Note that on Linux, gprof apparently does not work for shared
573+
libraries. The Makefile/Setup mechanism can be used to compile and
574+
link most extension module statically.
575+
576+
562577
Testing
563578
-------
564579

0 commit comments

Comments
 (0)