Add instructions and another image

This commit is contained in:
Tom McLaughlin 2021-08-01 04:04:24 -07:00
parent fce507081f
commit 45102305fc
2 changed files with 15 additions and 1 deletions

View File

@ -3,4 +3,18 @@
Analyze how long it takes GHC to compile Haskell modules.
![hledger profile](./hledger.svg)
# Example: hledger
You can generate the time report below for [hledger](https://github.com/simonmichael/hledger) by running the following commands (assuming you have Nix).
``` bash
set -e
cd $(mktemp -d)
git clone git@github.com:simonmichael/hledger.git
git clone git@github.com:codedownio/time-ghc-modules.git
cd hledger
stack build --ghc-options "-ddump-to-file -ddump-timings"
../time-ghc-modules/time-ghc-modules-nix
```
![hledger profile](./hledger.png)

BIN
hledger.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB