[Python-Dev] building python with profiling support
Hye-Shik Chang
perky at i18n.org
Sat Feb 7 14:54:10 EST 2004
On Sat, Feb 07, 2004 at 02:25:39PM -0500, Jeremy Hylton wrote:
> 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.
[snip]
> Can anyone suggest a recipe that will work? Or suggest how to modify
> the Makefile so that the -pg flag gets passed along.
>
I turn profiling on in this way:
% CC="cc -pg" LDFLAGS="-pg" ./configure
Hye-Shik
More information about the Python-Dev
mailing list