www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14527] New: [Enh] Instrument calls to operator new with


          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: nobody puremagic.com
          Reporter: bugzilla 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:


Apr 29 2015