viewprof: Text-based interactive GHC .prof viewer

[ bsd3, development, program ] [ Propose Tags ]

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

You can find a screenshot and some explanation in the README.

[Skip to Readme]


Versions [RSS] 0.0.0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Change log
Dependencies base (>=4.9 && <4.15), brick (>0.26.1 && <0.54), containers (>=0.5.7 && <0.7), directory (>=1.3 && <1.4), ghc-prof (>=1.4 && <1.5), lens (>=4.14 && <4.20), scientific (>= && <0.4), text (>= && <1.3), vector (>= && <0.13), vector-algorithms (>= && <0.9), vty (>=5.13 && <5.29) [details]
License BSD-3-Clause
Copyright Copyright (C) 2016-2020 Mitsutoshi Aoe
Author Mitsutoshi Aoe
Maintainer Mitsutoshi Aoe <>
Category Development
Home page
Bug tracker
Source repo head: git clone
Uploaded by MitsutoshiAoe at 2020-05-05T14:10:16Z
Distributions NixOS:
Executables viewprof
Downloads 16569 total (90 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2020-05-05 [all 3 reports]

Readme for viewprof-

[back to package description]


Hackage Hackage-Deps 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.


stack install viewprof

On Windows


How to install and launch

git clone
cd viewprof/docker
docker-machine start
docker build -t viewprof .
.\viewprof.bat path/to/


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.