... | ... | @@ -11,6 +11,14 @@ GhcProfiled=YES |
|
|
to your `build.mk` file. This is more robust than trying things like `GhcStage2HcOpts += -prof` because there are several things to do: first we build the ghc library, then we build the ghc program, linked against the library.
|
|
|
|
|
|
|
|
|
You can also use the prof BuildFlavor:
|
|
|
|
|
|
```wiki
|
|
|
# Profile the stage2 compiler:
|
|
|
BuildFlavour = prof
|
|
|
```
|
|
|
|
|
|
|
|
|
Once you've done this, you should be able to run GHC (stage 2) to generate time and space profiles. For example:
|
|
|
|
|
|
```wiki
|
... | ... | |