Tracing allocations with "new" in dmd
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.com
Fri Jun 19 14:19:36 UTC 2020
On 6/19/20 9:48 AM, Guillaume Piolat wrote:
> On Friday, 19 June 2020 at 13:45:23 UTC, Andrei Alexandrescu wrote:
>> dmd does most of its allcoation with new. I wonder what would be the
>> easiest way to track how many instances of each type are created.
>>
>> There are over 3000 call sites, so ideally the changes to the source
>> would be entirely automatic (e.g. with sed).
>>
>> Would be in your debt for any ideas. Thanks!
>
> -profile=gc ?
Thanks, I'll look into it. Does it provide type information or only
low-level allocated size information?
More information about the Digitalmars-d
mailing list