Re: Memory profiling: Python 3.2

2012-11-02 Thread Antoine Pitrou
Andrew Robinson r3dsolutions.com> writes: > > When Python3.2 is running, is there an easy way within Python to capture > the *total* amount of heap space the program is actually using (eg:real > memory)? I'm not sure what you mean with "real memory" or how precise you want that measurement t

Memory profiling: Python 3.2

2012-11-02 Thread Andrew Robinson
When Python3.2 is running, is there an easy way within Python to capture the *total* amount of heap space the program is actually using (eg:real memory)? And how much of that heap space is allocated to variables ( including re-capturable data not yet GC'd ) ? -- http://mail.python.org/mail

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

Profiling python on OSX?

2009-10-12 Thread nitroamos
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 S

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

Profiling Python Apps on Mac?

2009-01-28 Thread RGK
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 horribly bloated or kind of

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,

Profiling Python

2008-12-03 Thread esgameserver
Hi, Simply put, we want to see the profile info dynamically. Is that possible? To clarify again, Is there some function like profile.PrintStats() which dynamically shows the stats before stopping the Profiler? Regards, -- http://mail.python.org/mailman/listinfo/python-list

Re: Performance profiling Python code

2006-03-24 Thread Felipe Almeida Lessa
Em Sex, 2006-03-24 às 15:58 -0500, Jack Diederich escreveu: > As a last resort you can write the sensitive bits in C and add a python > wrapper. For the ICFP contest[1] each year I write the few primitives > in C and all the logic in python and it works quite well. Before that, try Psyco. It help

Re: Performance profiling Python code

2006-03-24 Thread Jack Diederich
On Fri, Mar 24, 2006 at 09:33:55PM +0100, Andreas R?sdal wrote: > Hi, > > I'm using the Python profiler to optimize a pathfinding algorithm of a > game, and would like some help from someone who knows how to improve the > performance of Python code. The algorithm is A-Star, and it works > correctl

Performance profiling Python code

2006-03-24 Thread Andreas Røsdal
Hi, I'm using the Python profiler to optimize a pathfinding algorithm of a game, and would like some help from someone who knows how to improve the performance of Python code. The algorithm is A-Star, and it works correctly. However, the interface that I made between the A-Star pathfinding algorit

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! _

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:/

Profiling python 2.3

2005-01-27 Thread Kenneth Johansson
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. I tried to use profile.run as the first thing in the new thread and the thread starts and works fine but when it exits