Helmut Eller wrote:
Raymond Toy rtoy@earthlink.net writes:
Will lisp::gencgc-stats do what you want? I don't really know what all of the data mean. It was meant for someone to use if they needed or wanted to try tuning GC for their app.
Good enough for me. I assume that there are always 6 generations. I changed the default gc-hook so that it also prints the time and the distribution. It looks now like:
[GC done. 11.2 mb freed 84.5 mb retained 0.0/.05/.01/.12/.78/.03 0.07 sec] ^^^^^^^^^^^^^^^^^^^^^^^ This here is the distribution.
The newest generation is first and, e.g. .78 means that 78% of the live objects are in the 5th generation.
This looks good. The default is 6 generations, but it's a compile-time constant, that's never been changed AFAIK. It's also possible to change the number of "active" generations at run-time so older generations are never GCed. But people doing this should know what they're doing, so this default is pretty good.
Rather than using my own version, I just updated slime and this looks quite nice.
Many thanks!
Ray