Home

Awesome

viewprof

Hackage Hackage-Deps Build Status

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

screenshot

It has three display modes:

Installation

stack install viewprof

On Windows

Prerequisites

How to install and launch

git clone git@github.com:maoe/viewprof.git
cd viewprof/docker
docker-machine start
docker build -t viewprof .
.\viewprof.bat path/to/file.prof

Usage

keysaction
q or escapequit the current view
j or move focus down         
k or move focus up        
ggmove focus to the top
Gmove focus to the bottom
Cdisplay aggregate cost center view
Mswitch to module breakdown
enterselect a cost center and display call sites
tsort by time
asort by allocation
esort by # of entries
h or ?show key bindings
ishow profile information

Acknowledgement

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