www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How can i track the GC when it's runing?

reply Dsby <dushibaiyu yahoo.com> writes:
I want to know How can i track the GC when it's runing?
And Which algorithm is  D's GC used,only Scan-Mark?
Jan 25 2016
next sibling parent Gary Willoughby <dev nomad.so> writes:
On Monday, 25 January 2016 at 09:33:15 UTC, Dsby wrote:
 I want to know How can i track the GC when it's runing?
 And Which algorithm is  D's GC used,only Scan-Mark?
There is a good resource here: https://dlang.org/spec/garbage.html It details compiler flags to use to profile and log the GC usage.
Jan 25 2016
prev sibling parent cym13 <cpicard openmailbox.org> writes:
On Monday, 25 January 2016 at 09:33:15 UTC, Dsby wrote:
 I want to know How can i track the GC when it's runing?
 And Which algorithm is  D's GC used,only Scan-Mark?
Something that isn't on Garry's link: if using dmd you can pass the "-profile=gc" flag which will do the GC configuration so that you get a summary of all allocations at the end of the program.
Jan 25 2016