D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 14527 - [Enh] Instrument calls to operator new with -profilenew compiler switch
Summary: [Enh] Instrument calls to operator new with -profilenew compiler switch
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-30 02:29 UTC by Walter Bright
Modified: 2023-02-13 14:35 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Walter Bright 2015-04-30 02:29:13 UTC
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 RazvanN 2023-02-13 14:35:09 UTC
This seems to have been fixed, since profile=gc exists for some time.