www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20960] New: -profile=gc does not track class objects

https://issues.dlang.org/show_bug.cgi?id=20960

          Issue ID: 20960
           Summary: -profile=gc does not track class objects allocated
                    with new
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: andrei erdani.com

Building dmd itself with -profile=gc and then running it on a few simple files
seems to show that only array allocations are traced, but not allocations of
individual objects. dmd allocates many nodes for syntax elements, and their
allocation would be interesting to trace.

--
Jun 19