The viewprof package

[Tags:bsd3, program]

Text-based interactive GHC .prof viewer


[Skip to Readme]

Properties

Versions 0.0.0, 0.0.0.1, 0.0.0.2, 0.0.0.3
Change log CHANGELOG.md
Dependencies base (==4.9.*), brick (>=0.16 && <0.19), containers (>=0.5.7 && <0.6), ghc-prof (==1.4.*), lens (>=4.14 && <4.16), scientific (>=0.3.4.4 && <0.4), text (>=1.2.2.0 && <1.3), vector (>=0.10.12.3 && <0.13), vector-algorithms (>=0.6.0.4 && <0.8), vty (>=5.13 && <5.16) [details]
License BSD3
Copyright Copyright (C) 2016-2017 Mitsutoshi Aoe
Author Mitsutoshi Aoe
Maintainer Mitsutoshi Aoe <maoe@foldr.in>
Category Development
Home page https://github.com/maoe/viewprof
Bug tracker https://github.com/maoe/lifted-async/issues
Source repository head: git clone https://github.com/maoe/viewprof.git
Uploaded Sun Jun 11 21:22:15 UTC 2017 by MitsutoshiAoe
Distributions LTSHaskell:0.0.0.1, NixOS:0.0.0.3, Stackage:0.0.0.3, Tumbleweed:0.0.0.1
Downloads 147 total (56 in the last 30 days)
Votes
0 []
Status Docs not available [build log]
Last success reported on 2017-06-11 [all 3 reports]
Hackage Matrix CI

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for viewprof

Readme for viewprof-0.0.0.3

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

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

stack install viewprof

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.