Thread overview | |||||
---|---|---|---|---|---|
|
January 25, 2016 How can i track the GC when it's runing? | ||||
---|---|---|---|---|
| ||||
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? |
January 25, 2016 Re: How can i track the GC when it's runing? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dsby | 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. |
January 26, 2016 Re: How can i track the GC when it's runing? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dsby | 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.
|
Copyright © 1999-2021 by the D Language Foundation