Tracing allocations with "new" in dmd

kinke noone at nowhere.com
Sat Jun 20 02:03:58 UTC 2020


On Saturday, 20 June 2020 at 01:20:02 UTC, Andrei Alexandrescu 
wrote:
> 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?

Yes, instrumentation to be inserted.


More information about the Digitalmars-d mailing list