www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14955] New: [D1] Add module profiling feature

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

          Issue ID: 14955
           Summary: [D1] Add module profiling feature
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: andrej.mitrovich gmail.com

Since the -profile switch by default generates a try/finally
for every function which is generated this causes a major
slowdown of the application and makes it hard to frequently
do performance analysis or even do analysis on a specific
set of functions.

Instead one could profile a specific module via:

$ dmd -profile=my.mod ...

It's fairly easy to implement.

--
Aug 24 2015