Tracing allocations with "new" in dmd

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Jun 20 01:20:02 UTC 2020


On 6/19/20 6:05 PM, kinke wrote:
> On Friday, 19 June 2020 at 16:09:00 UTC, Andrei Alexandrescu wrote:
>> Does it provide type information about the objects allocated?
> 
> All (?) `new` allocations in DMD are redirected to 
> https://github.com/dlang/dmd/blob/b6b0c0f41a476c4eaa88ba106fb4de1175d40440/src/dmd/root/rmem.d#L222-L310. 
> There you have the TypeInfos.

Thank you! Just to clarify: this is advice on where to insert my own 
tracing, not a pointer to an existing instrumentation, right?


More information about the Digitalmars-d mailing list