Updated README with profiling informaiton
authorNeil Smith <neil.git@njae.me.uk>
Sat, 6 Oct 2018 20:16:40 +0000 (21:16 +0100)
committerNeil Smith <neil.git@njae.me.uk>
Sat, 6 Oct 2018 20:16:40 +0000 (21:16 +0100)
README.html
README.md

index 779917d44728047314f6c104aab1d14e7022bf68..12def06720b94f3ad9d138b5ed301ab12b1df71e 100644 (file)
 <p>Run interactively with</p>
 <pre><code>stack ghci summerofcode2018soln:exe:task1</code></pre>
 <p>To profile, use</p>
-<pre><code>stack build --executable-profiling --library-profiling --ghc-options=&quot;-fprof-auto -rtsopts&quot; task1</code></pre>
+<pre><code>stack build --executable-profiling --library-profiling --ghc-options=&quot;-fprof-auto -rtsopts&quot;</code></pre>
 <p>then run with</p>
 <pre><code>stack exec -- task1 +RTS -p -hy</code></pre>
+<p>Make the profile graph visible with</p>
+<pre><code>/usr/lib/ghc/bin/hp2ps task1.hp</code></pre>
 <h2 id="packages">Packages</h2>
 <p>Stack is using the <a href="https://www.stackage.org/lts-12.9">12.9-lts resolver</a> for packages, so make sure you read the <a href="https://www.stackage.org/lts-12.9/docs">correct documentation for the packages included in it</a>.</p>
 <p>When you use a new package, use</p>
index 6dad2b8d00f19c37e4f10276be7e890f147acd77..63ac7055c7f1575b5ef8b81771b5bea1f13ffd0d 100644 (file)
--- a/README.md
+++ b/README.md
@@ -60,12 +60,16 @@ stack ghci summerofcode2018soln:exe:task1
 
 To profile, use 
 ```
-stack build --executable-profiling --library-profiling --ghc-options="-fprof-auto -rtsopts" task1
+stack build --executable-profiling --library-profiling --ghc-options="-fprof-auto -rtsopts"
 ```
 then run with
 ```
 stack exec -- task1 +RTS -p -hy
 ```
+Make the profile graph visible with 
+```
+/usr/lib/ghc/bin/hp2ps task1.hp
+```
 
 ## Packages