A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-February/042431.html below:

[Python-Dev] building python with profiling support

[Python-Dev] building python with profiling support [Python-Dev] building python with profiling supportJeremy Hylton jeremy at alum.mit.edu
Sat Feb 7 14:25:39 EST 2004
I've used gprof to profile the interpreter in the past, but I'm stuck
trying to it again on my current machine.  I configured Python by saying
    CC="gcc -pg" ../configure

That's the way I've built Python for profiling in the past and that's
what the README says to do.  The python binary that gets generated
doesn't generate a gmon.out file.

It appears that the problem is with the command used to generate the
actual Python executable:

c++ -pthread  -Xlinker -export-dynamic -o python \
                Modules/python.o \
                libpython2.4.a -lpthread -ldl  -lutil   -lm

The -pg flag has been lost.

Can anyone suggest a recipe that will work?  Or suggest how to modify
the Makefile so that the -pg flag gets passed along.

Jeremy



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4