https://issues.dlang.org/show_bug.cgi?id=14527
Issue ID: 14527 Summary: [Enh] Instrument calls to operator new with -profilenew compiler switch Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: DMD Assignee: nob...@puremagic.com Reporter: bugzi...@digitalmars.com 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 --