prof2pretty

generate pretty source from time/allocation profiles

https://gitorious.org/prof2pretty

Latest on Hackage:0.1.0.0

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Claude Heiland-Allen
Maintained by [email protected]

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