Hooking into GC

thedeemon via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 28 20:10:10 PDT 2016


On Wednesday, 29 June 2016 at 02:18:27 UTC, MMJones wrote:
> I read somewhere that one can modify the D files from phobos 
> and runtime to supply a stub for the GC. I would like to add 
> some logging features to the GC.


You don't need to recompile anything, a stub can be installed 
from your program. See an example (which can do logging) here:
https://bitbucket.org/infognition/dstuff/src/97cef6d4a0438f9a9f4ff0d18f819262b8a74888/trackallocs.d?fileviewer=file-view-default


More information about the Digitalmars-d-learn mailing list