@hackage / prof2pretty

generate pretty source from time/allocation profiles

Latest0.1.0.0

About

Metadata

  • Last updated , by ClaudeHeilandAllen
  • License BSD-3-Clause
  • Categories Development, Profiling
  • Maintained by: claude@mathr.co.uk

  • Lottery factor: 0

Links

Installation

Readme

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