Text-based interactive GHC .prof viewer

Version on this page:
LTS Haskell 8.20:
Stackage Nightly 2017-06-23:
Latest on Hackage:
BSD3 licensed by Mitsutoshi Aoe
Maintained by Mitsutoshi Aoe

Module documentation for

There are no documented modules for this package.


Hackage Hackage-Deps Stackage LTS Stackage Nightly Build Status

viewprof is a text-based interactive GHC .prof viewer.


It has three display modes:

  • Aggregate cost centers view: This is the default view. It groups cost centers by their name and module name, like the middle section of .prof files.
  • Call sites view: If you press enter on a cost center, viewprof displays call sites of the cost center you selected. This view tells how much the cost center spent for each call site.
  • Modules view: If you press M, viewprof displays the module level breakdown. This view tells coarse overview of cost attribution.


Note: Currently viewprof doesn't support Windows because the underlying library (vty) doesn't support it yet. See #1.

stack install viewprof


| keys | action | |-------------------|---------------------------------------------| | q or escape | quit the current view | | j or | move focus down          | | k or | move focus up         | | gg | move focus to the top | | G | move focus to the bottom | | C | display aggregate cost center view | | M | switch to module breakdown | | enter | select a cost center and display call sites | | t | sort by time | | a | sort by allocation | | e | sort by # of entries | | h or ? | show key bindings | | i | show profile information |


viewprof was originally meant to be a Haskell port of mkotha/viewprof, which is a text-based .prof viewer written in Common Lisp.


Revision history for viewprof (2017-06-12)

  • Relax upper version bound for brick (2017-02-14)

  • Update ghc-prof to 1.4.0 (2017-01-25)

  • Relax upper version bounds for vty and brick

0.0.0 (2017-01-20)

  • Initial release
comments powered byDisqus