Re: How do I find the memory used by a python process

2008-11-03 Thread Scott David Daniels
Ben Finney wrote: Salim Fadhley <[EMAIL PROTECTED]> writes: The unit-test needs to check that after the functions have been run a few thousand times all of the memory used by those functions has been un-allocated, i.e. that there are no memory leaks. This is a great test case, However, I

Re: How do I find the memory used by a python process

2008-11-03 Thread Ben Finney
Salim Fadhley <[EMAIL PROTECTED]> writes: > The unit-test needs to check that after the functions have been run > a few thousand times all of the memory used by those functions has > been un-allocated, i.e. that there are no memory leaks. This is a great test case, thanks. I must add it to my sto

Re: How do I find the memory used by a python process

2008-11-03 Thread Martin v. Löwis
> So each test would check the amount of memory available, call the > function N times and then check the amount of memory available > afterwards. If the amount of memory before and after changes by a > certain amount then the test is failed. Please take a look at the muppy package: http://pypi.p