How to profile compile times of a source code?
Stefan Koch
uplink.coder at googlemail.com
Sat Jan 30 23:37:29 UTC 2021
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.
More information about the Digitalmars-d-learn
mailing list