Re: Profiling Python using gprof

2005-10-11 Thread Micah Elliott
On Oct 11, Dave wrote: > I would like to profile a Python program using gprof. I already > rebuilt Python with CC="gcc -pg" ./configure. So, I should be able to > use gprof. How do I do that? Should I first run Python and then gprof? > What are the steps? Note that it is much more common to use Py

Re: Profiling Python using gprof

2005-10-11 Thread jepler
It should be the same as for any program $ program-compiled-with-pg $ gprof /path/to/program-compiled-with-pg you'll need to make sure that python is not only *compiled* with -pg but that the *link line* contains -pg as well. That's a common "gotcha" when it comes to profiling. Jeff pgpQy

Profiling Python using gprof

2005-10-11 Thread Dave
Hello, I would like to profile a Python program using gprof. I already rebuilt Python with CC="gcc -pg" ./configure. So, I should be able to use gprof. How do I do that? Should I first run Python and then gprof? What are the steps? Thanks a lot! _