X-Git-Url: https://git.njae.me.uk/?p=advent-of-code-19.git;a=blobdiff_plain;f=README.html;h=916c577914204de7221867eca95a26dfc1028e87;hp=16c04e174f38c644c32c3887b81db80a996b2aea;hb=3c8880f27a53ab063886a0b19b665c85155cbaf2;hpb=806af597077178544c39ffbe022a1a666de1676f diff --git a/README.html b/README.html index 16c04e1..916c577 100644 --- a/README.html +++ b/README.html @@ -39,10 +39,13 @@
stack exec -- advent01 +RTS -K0 -RTS

Run interactively with

stack ghci advent01
+

or

+
stack ghci advent01:exe:advent01
+

if the first form is ambiguous.

To profile, use

-
stack build --executable-profiling --library-profiling --ghc-options="-fprof-auto -rtsopts"
+
stack build --executable-profiling --library-profiling --ghc-options="-fprof-auto -rtsopts" advent01

then run with

-
stack exec -- advent01 +RTS -p -hy
+
stack exec --profile -- advent01 +RTS -p -hy

Generate the profile graph with

stack exec hp2ps advent01.hp

Packages