viewprof

Text-based interactive GHC .prof viewer

https://github.com/maoe/viewprof

Version on this page:0.0.0.10
LTS Haskell 14.27:0.0.0.32
Stackage Nightly 2019-09-21:0.0.0.31
Latest on Hackage:0.0.0.33

See all snapshots viewprof appears in

BSD-3-Clause licensed by Mitsutoshi Aoe
Maintained by Mitsutoshi Aoe
This version can be pinned in stack with:viewprof-0.0.0.10@sha256:a1e0a891d213f3e84572ebd9a500523a4d4f5572735efa318245522b075a5f6c,1102

Module documentation for 0.0.0.10

There are no documented modules for this package.

viewprof

Hackage Hackage-Deps Stackage LTS Stackage Nightly Build Status

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

screenshot

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.

Installation

stack install viewprof

On Windows

Prerequisites

How to install and launch

git clone [email protected]:maoe/viewprof.git
cd viewprof/docker
docker-machine start
docker build -t viewprof .
.\viewprof.bat path/to/file.prof

Usage

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

Acknowledgement

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

Changes

Revision history for viewprof

0.0.0.10 - 2017-10-11

  • Relax upper version bound for brick

0.0.0.9 - 2017-10-07

  • Relax upper version bounds for vty and brick

0.0.0.8 - 2017-08-09

  • Relax upper version bound for vty and brick

0.0.0.7 - 2017-07-31

  • Relax upper version bound for base

0.0.0.6 - 2017-07-21

  • Relax upper version bound for vty

0.0.0.5 - 2017-07-10

  • Relax upper version bound for brick
  • Add Docker support on Windows

0.0.0.4 - 2017-06-28

  • Relax upper version bound for brick

0.0.0.3 - 2017-06-12

  • Relax upper version bound for brick

0.0.0.2 - 2017-02-14

  • Update ghc-prof to 1.4.0

0.0.0.1 - 2017-01-25

  • Relax upper version bounds for vty and brick

0.0.0 - 2017-01-20

  • Initial release