Re: Gradual Growth of Memory Use?
"Tim Bradshaw (as tfb at tfeb dot org)" <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
On 19 Mar 2025, at 13:02, Martin Simmons <[email protected]> wrote: > > I suggest comparing those counters with another call to size-by-class/loop > when the image has grown some more. After that, you could do (gc-generation > 3) and compare again to see if the objects were really live or just stuck in > generation 3. This is the trick, yes. What I do is run (size-by-class :min-ratio 0.1) which will find you the top 90% of the cumulative size, which is typically a rather small number of classes. Then look at how that changes over time. I had a plotter for this in Racket which plots these as histograms, but it was too rubbish to use. It was too rubbish because it didn't either keep track of which classes were which colours in the histogram, or make the historgram's x position correspond to the time it was made. So I don't have it any more. What I really want is something which will produce one of the nice 'Napoleon's march to Moscow' type plots (they must have a name) where you can see things grow and shrink over time. I don't know how to make those though: I suspect one of the Python libraries will have it. --tim _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html