Profiling python on OSX?
nytrokiss at gmail.com
Wed Oct 14 05:19:14 CEST 2009
You can use valgrind and attach it to python (in which you recompile python
On Mon, Oct 12, 2009 at 9:51 PM, nitroamos <nitroamos at gmail.com> wrote:
> Hello --
> I'm a python noob, so I'm trying to figure out how to get access to
> the same data I'm used to from gprof, if possible. I was able to get
> cPython/Stats to work just fine... but I'm disappointed with the lack
> of detail in the output... Is there a better way?
> For example, OSX has the nice Sampler program (which I guess is now a
> part of Instruments)... is there a way I can use this to study my
> python scripts without all the python interpreter "noise"? Or some
> other OSX tool?
> And beyond this, is there a way to get the gprof data from my C++
> extensions without recompiling python? I'm a bit uncomfortable
> recompiling python... I could do it, but seems like it's too much
> effort for what I'm trying to accomplish at the moment...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list