... | ... | @@ -4,7 +4,7 @@ |
|
|
If GHC itself is running too slowly, you can profile the compiler itself. The way to do this is to use the [hadrian flavours](https://gitlab.haskell.org/ghc/ghc/blob/master/hadrian/doc/flavours.md), the key part of which in this case is
|
|
|
|
|
|
```wiki
|
|
|
--flavour=prof
|
|
|
--flavour=devel2+profiled_ghc+no_dynamic_ghc
|
|
|
```
|
|
|
|
|
|
Once you've done this and built your ghc binary, you should be able to run GHC (stage 2) to generate time and space profiles. For example:
|
... | ... | |