method, this must appear *before*
> importing pylab for the first time; it is something of a "gotcha" that
> if it appears after pylab has been imported it doesn't give you any clue
> that it is ineffective.
>
> Eric
>
>
> Luke Robison wrote:
> > I *am*
, but during the batch job really all i needed
was the actual histogram numbers, so I looked through the code and
found matplotlib.mlab.hist which is all I really need, and doesn't
leak ;-).
Thanks for the help,
Luke Robison
On 8/9/07, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> The
at version number from within python.
-Luke Robison
Code:
---
import os,time,sys
from pylab import *
def report_memory(i):
pid = os.getpid()
a2 = os.popen('ps -p %d -o rss,sz' % pid).readlines()
print i, ' ', a2[1],
return int(a2[1].split()[1]