Re: [Pythonmac-SIG] Finding the memory usage of a Python process

2008-04-20 Thread Chris Kees
I have been using an approach like Gary's below, but I just noticed that it can't calculate the memory correctly once the resident size gets over about 4G. The 'top' command seems correct but not 'ps'. On Apr 15, 2008, at 2:06 PM, Gary Bernhardt wrote: > On 4/15/08, Konrad Hinsen <[EMAIL PROTE

Re: [Pythonmac-SIG] Finding the memory usage of a Python process

2008-04-15 Thread Gary Bernhardt
On 4/15/08, Konrad Hinsen <[EMAIL PROTECTED]> wrote: > I am trying to obtain the amount of memory that my Python process > uses from inside the Python program using resource.getrusage(). While > this works fine under Linux, on the Mac I always get 0 for the memory > usage (the time information s

[Pythonmac-SIG] Finding the memory usage of a Python process

2008-04-15 Thread Konrad Hinsen
I am trying to obtain the amount of memory that my Python process uses from inside the Python program using resource.getrusage(). While this works fine under Linux, on the Mac I always get 0 for the memory usage (the time information seems credible though). Does anyone have another idea for