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.
stack install viewprof
- Docker for Windows or Docker Toolbox.
- Currently tried with: Docker Toolbox v17.04.0ce on Windows 10 Home.
How to install and launch
git clone email@example.com:maoe/viewprof.git cd viewprof/docker docker-machine start docker build -t viewprof . .\viewprof.bat path/to/file.prof
||quit the current view|
||move focus down|
||move focus up|
||move focus to the top|
||move focus to the bottom|
||display aggregate cost center view|
||switch to module breakdown|
||select a cost center and display call sites|
||sort by time|
||sort by allocation|
||sort by # of entries|
||show key bindings|
||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.