Re: Memory Profiler

2006-01-11 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Dave 
<[EMAIL PROTECTED]> writes
>Is there any memory profiler for Python programs? I

Python Memory Validator

http://www.softwareverify.com/pythonMemoryValidator/index.html

Stephen
-- 
Stephen Kellett
Object Media Limitedhttp://www.objmedia.demon.co.uk/software.html
Computer Consultancy, Software Development
Windows C++, Java, Assembler, Performance Analysis, Troubleshooting
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Memory Profiler

2006-01-11 Thread Grig Gheorghiu
See

http://pycheesecake.org/wiki/PythonTestingToolsTaxonomy#MiscellaneousPythonTestingTools

In particular, PySizer and HeapPy might be what you're looking for. I
can't say for sure, since I haven't used these tools myself.

Grig

-- 
http://mail.python.org/mailman/listinfo/python-list


Memory Profiler

2006-01-11 Thread Dave
Hi,

Is there any memory profiler for Python programs? I
would like to see how much memory objects take up,
cache misses, etc. I tried to patch PySizer, but got a
build error (Error 138). 

Thanks!

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: memory profiler?

2005-04-23 Thread John Reese
On Wed, 20 Apr 2005 23:06:51 -0400, Peter Hansen <[EMAIL PROTECTED]> wrote:
> John Reese wrote:
>> Is there a memory or heap profiler for python programs?  So that, for
>> example, if a program was bloating over time I could see how many of
>> each object there were and maybe even where the references were?
>
> The "gc" module has a variety of helpful features
> like that.
>
> -Peter

In particular, get_objects() and get_referrers().  Good point.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: memory profiler?

2005-04-21 Thread Diez B. Roggisch
Peter Hansen wrote:

> John Reese wrote:
>> Is there a memory or heap profiler for python programs?  So that, for
>> example, if a program was bloating over time I could see how many of
>> each object there were and maybe even where the references were?
> 
> The "gc" module has a variety of helpful features
> like that.

I created a qt-based memory analyzer on top of the gc module. I plan to
release it soon - it has been helpful to me for a few projects. Its a
client-server application that collects data through an in-process running
thread that delivers object histograms. The client fetches these and allows
to display the development of objects based various criteria over the time.
It can also record these data for offline-analysis. So far the in-proccess
threads communicate their histograms either by pyro or xmlrpc servers.  

Unfortunately debugging ZOPE with the xmlrpc server lead to a mem-leak
itself :( - so currently I'm no confident enough to release it. 
-- 
Regards,

Diez B. Roggisch
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: memory profiler?

2005-04-20 Thread Peter Hansen
John Reese wrote:
Is there a memory or heap profiler for python programs?  So that, for
example, if a program was bloating over time I could see how many of
each object there were and maybe even where the references were?
The "gc" module has a variety of helpful features
like that.
-Peter
--
http://mail.python.org/mailman/listinfo/python-list


memory profiler?

2005-04-20 Thread John Reese
Good afternoon, ha ha ha!

Is there a memory or heap profiler for python programs?  So that, for
example, if a program was bloating over time I could see how many of
each object there were and maybe even where the references were?
-- 
http://mail.python.org/mailman/listinfo/python-list