Re: Profiling python on OSX?

2009-10-13 Thread James Matthews
You can use valgrind and attach it to python (in which you recompile python for it...) On Mon, Oct 12, 2009 at 9:51 PM, nitroamos 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 > cPy

Re: Profiling Python Apps on Mac?

2009-01-28 Thread Robert Kern
On 2009-01-28 13:14, RGK wrote: I'm writing a python app on a Mac (in Eclipse + PyDev w/ Python2.5 & wxPython under OSX 10.4) As I make program architecture decisions, it would be nice to be able to profile the choices. Should I add that extra thread? Is this big-assed xml object I just created

Re: Profiling Python Apps on Mac?

2009-01-28 Thread David Cournapeau
On Thu, Jan 29, 2009 at 4:14 AM, RGK wrote: > I'm writing a python app on a Mac (in Eclipse + PyDev w/ Python2.5 & > wxPython under OSX 10.4) > > As I make program architecture decisions, it would be nice to be able to > profile the choices. Should I add that extra thread? Is this big-assed xml

Re: Profiling Python Apps on Mac?

2009-01-28 Thread Pierre-Alain Dorange
RGK wrote: > As I make program architecture decisions, it would be nice to be able to > profile the choices. Should I add that extra thread? Is this big-assed > xml object I just created horribly bloated or kind of ordinary. python -m profile yourscript.py see

Re: Profiling Python Apps on Mac?

2009-01-28 Thread RGK
Philip Semanchuk wrote: Is there any reason that this wouldn't work? http://docs.python.org/library/hotshot.html It suggests that it doesn't work well with threads, but as I didn't know about any options, it's a step forward. Thanks for the pointer. :) R. -- http://mail.python.org/mailma

Re: Profiling Python Apps on Mac?

2009-01-28 Thread Philip Semanchuk
On Jan 28, 2009, at 2:14 PM, RGK wrote: I'm writing a python app on a Mac (in Eclipse + PyDev w/ Python2.5 & wxPython under OSX 10.4) As I make program architecture decisions, it would be nice to be able to profile the choices. Should I add that extra thread? Is this big-assed xml obje

Re: Profiling Python

2008-12-06 Thread Dieter Maurer
[EMAIL PROTECTED] writes on Wed, 3 Dec 2008 07:13:14 -0800 (PST): > To clarify again, > Is there some function like profile.PrintStats() which dynamically > shows the stats before stopping the Profiler? Try to (deep) copy the profiler instance and than call "PrintStats()" on the copy. Of course,

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

Re: Profiling python 2.3

2005-01-28 Thread Kenneth Johansson
On Fri, 28 Jan 2005 10:02:33 +, Stephen Kellett wrote: > In message <[EMAIL PROTECTED]>, Kenneth > Johansson <[EMAIL PROTECTED]> writes >>I wonder what would be a good way to profile a python program where the >>main thread starts two worker threads that do all the work. >> >>I get no infoma

Re: Profiling python 2.3

2005-01-28 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Kenneth Johansson <[EMAIL PROTECTED]> writes I wonder what would be a good way to profile a python program where the main thread starts two worker threads that do all the work. I get no infomation at all from the threads. Python Performance Validator (beta) http:/