I think everything's in the title, but to give more context. We have two 70+ packages whose compilation times are pretty different: One takes twice as much time as the other (without taking into account parallelization). I would like to know which modules take the most time in order to have a better understanding of what is causing this discrepancy.
GHC can output per-module timing data nowadays when you build with -ddump-to-file -ddump-timings
. This causes files with the extension .dump-timings
to be written in your build directories (generally .stack-work
for Stack and dist-newstyle
for Cabal).
I wrote a tool to find all these files and visualize them: https://github.com/codedownio/time-ghc-modules.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With