Tracing allocations with "new" in dmd
Stefan Koch
uplink.coder at googlemail.com
Fri Jun 19 14:44:06 UTC 2020
On Friday, 19 June 2020 at 14:42:27 UTC, Andrei Alexandrescu
wrote:
> On 6/19/20 10:23 AM, Stefan Koch 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!
>>
>> I have a tracing tool.
>> USE IT.
>
> Cool, some links to docs would be great!
There are no docs unfortunately.
I am happy to provide assistance and in the process of
exploration the docs will be created as well.
More information about the Digitalmars-d
mailing list