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: [email protected]
Reporter: [email protected]
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.
--