On Saturday, 30 January 2021 at 23:34:50 UTC, Stefan Koch wrote:

this special version of dmd will generate a trace file which can be read with the included printTraceHeader tool

you will want to take a look at the PhaseHist command which shows you the compiler phase that took the most time.

Alternative I recommend using callgrind to profile where dmd spents most of it's time.
For that to be useful you need a debug build of dmd though.


Reply via email to