Re: Tracking memory usage and object life time.

2007-09-26 Thread Istvan Albert
On Sep 26, 8:06 am, Berteun Damman <[EMAIL PROTECTED]> wrote: > that have been created after I don't need them anymore. I furthermore > don't really see why there would be references to these larger objects > left. (I can be mistaken of course). This could be tricky because you have a graph that

Re: Tracking memory usage and object life time.

2007-09-26 Thread Berteun Damman
On Sep 26, 2:31 pm, Bjoern Schliessmann wrote: > Did you check the return value of gc.collect? Also, try using > other "insight" facilities provided by the gc module. gc.collect states it cannot find any unreachable objects. Meanwhile the number of objects the garbage collector has to keep track o

Re: Tracking memory usage and object life time.

2007-09-26 Thread Bjoern Schliessmann
Berteun Damman wrote: > When I run a test, I disable the garbage collection during the > test run (as is adviced), but just before starting a test I > instruct the garbage collector to collect. Running the test > without disabling the garbage collect doesn't show any difference > though. Did you

Tracking memory usage and object life time.

2007-09-26 Thread Berteun Damman
Hello, I have programmed some python script that loads a graph (the mathemical one with vertices and edges) into memory, does some transformations on it, and then tries to find shortest paths in this graph, typically several tens of thousands. This works fine. Then I made a test for this, so I co