GC stats

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 25 10:34:23 PDT 2015


Hello!

I was wondering if anyone has suggestions on the easiest way to 
time how long GC collections take? I haven't seen anything in the 
docs.

What I want is a clean non-intrusive way to log when a collection 
happened, how long my threads were stopped, how much total memory 
and how many blocks were recovered. i.e. how much garbage was 
created in between collections. Are there any hooks on the 
runtime?

Cheers,
-M


More information about the Digitalmars-d-learn mailing list