Description
generate pretty source from time/allocation profiles.
Description
prof2pretty is an enhanced rewrite of visual-prof that works with recent GHC RTS. sccpragmabomb adds SCC pragmas encoding source location. prof2pretty extracts those SCCs from the profiling output to annotate the sources using HTML + CSS + JavaScript.
Usage:
cd example
ghc -prof -F -pgmF=sccpragmabomb test.hs
cd ..
./example/test +RTS -P -RTS 31416
prof2pretty --standalone --source=example/ test.prof
sensible-browser test.prof.html
Example output: http://mathr.co.uk/prof2pretty/prof2pretty-0.1.0.0.html