Re: Memory stats

2005-09-27 Thread Fredrik Lundh
Tarek Ziadé wrote: > > If you want a list of all objects (container or not), you have to > > compile a debug build of Python. > > I am amazed not to find an existing implementation for this. the debug build is an existing implementation, of course. -- http://mail.python.org/mailman/listinf

Re: Memory stats

2005-09-27 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Tarek Ziadé <[EMAIL PROTECTED]> writes >I am trying to find a general memory profiler that can measure the >memory usage in Python program >and gather some stats about object usages, and things like that. Not a Python module, but Python Memory Validator may fit the

Re: Memory stats

2005-09-27 Thread Tarek Ziadé
gene tani wrote: >linux: >http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286222 > > Yes thanks I have found this one, I need to try it out, but it does not provide a way to refcount, Another solution could be to use trace maybe I am going to try things out Regards -- http://mail.py

Re: Memory stats

2005-09-27 Thread Tarek Ziadé
Martin v. Löwis wrote: >Tarek Ziadé wrote: > > >>I am trying to find a general memory profiler that can measure the >>memory usage in Python program >>and gather some stats about object usages, and things like that. >> >> > >As Diez says, use gc: gc.getobjects() gives you all container objec

Re: Memory stats

2005-09-27 Thread gene tani
linux: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286222 Martin v. Löwis wrote: > Tarek Ziadé wrote: > > I am trying to find a general memory profiler that can measure the > > memory usage in Python program > > and gather some stats about object usages, and things like that. > > As Di

Re: Memory stats

2005-09-26 Thread Martin v. Löwis
Tarek Ziadé wrote: > I am trying to find a general memory profiler that can measure the > memory usage in Python program > and gather some stats about object usages, and things like that. As Diez says, use gc: gc.getobjects() gives you all container objects. If you want a list of all objects (cont

Re: Memory stats

2005-09-25 Thread Diez B. Roggisch
Tarek Ziadé wrote: > Hi list, > > I am trying to find a general memory profiler that can measure the > memory usage in Python program > and gather some stats about object usages, and things like that. > > I am trying to find a simple python module to be able to customize it > and integrates it to

Memory stats

2005-09-24 Thread Tarek Ziadé
Hi list, I am trying to find a general memory profiler that can measure the memory usage in Python program and gather some stats about object usages, and things like that. I am trying to find a simple python module to be able to customize it and integrates it to other tools i have. (it should exi