Bug 14527 – [Enh] Instrument calls to operator new with -profilenew compiler switch
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-04-30T02:29:13Z
Last change time
2023-02-13T14:35:09Z
Assigned to
No Owner
Creator
Walter Bright
Comments
Comment #0 by bugzilla — 2015-04-30T02:29:13Z
Throwing the -profilenew switch to the compiler will case file, line, and function data to be added to the call. druntime's default behavior with this will be to report every location that allocates memory and how much memory. The user will be able to provide their own logging capability by overriding the default functions in druntime.
An initial implementation:
https://github.com/D-Programming-Language/dmd/pull/4621
Comment #1 by razvan.nitu1305 — 2023-02-13T14:35:09Z
This seems to have been fixed, since profile=gc exists for some time.