| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sat, 17 Jan 2026 05:14:58 GMT
X-Served-By: cache-dfw-kdfw8210151-DFW, cache-bom-vanm7210089-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768626898.686944,VS0,VE753
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
viewprof: Text-based interactive GHC .prof viewer
[Skip to Readme]
viewprof: Text-based interactive GHC .prof viewer
viewprof is a text-based interactive GHC .prof viewer.
You can find a screenshot and some explanation in the README.
[Skip to Readme]
Downloads
- viewprof-0.0.0.33.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.0.0, 0.0.0.1, 0.0.0.2, 0.0.0.3, 0.0.0.4, 0.0.0.5, 0.0.0.6, 0.0.0.7, 0.0.0.8, 0.0.0.9, 0.0.0.10, 0.0.0.11, 0.0.0.12, 0.0.0.13, 0.0.0.14, 0.0.0.15, 0.0.0.16, 0.0.0.17, 0.0.0.18, 0.0.0.19, 0.0.0.20, 0.0.0.21, 0.0.0.22, 0.0.0.23, 0.0.0.24, 0.0.0.25, 0.0.0.26, 0.0.0.27, 0.0.0.28, 0.0.0.29, 0.0.0.30, 0.0.0.31, 0.0.0.32, 0.0.0.33 |
|---|---|
| Change log | CHANGELOG.md |
| 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.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.9), vty (>=5.13 && <5.29) [details] |
| Tested with | ghc ==8.0.2 || ==8.2.2 || ==8.4.4 || ==8.6.5 || ==8.8.3 || ==8.10.1 |
| License | BSD-3-Clause |
| Copyright | Copyright (C) 2016-2020 Mitsutoshi Aoe |
| Author | Mitsutoshi Aoe |
| Maintainer | Mitsutoshi Aoe <me@maoe.name> |
| Uploaded | by MitsutoshiAoe at 2020-05-05T14:10:16Z |
| Category | Development |
| Home page | https://github.com/maoe/viewprof |
| Bug tracker | https://github.com/maoe/viewprof/issues |
| Source repo | head: git clone https://github.com/maoe/viewprof.git |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Executables | viewprof |
| Downloads | 19138 total (122 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-0.0.0.33
[back to package description]viewprof
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.
Installation
stack install viewprof
On Windows
Prerequisites
- Docker for Windows or Docker Toolbox.
- Currently tried with: Docker Toolbox v17.04.0ce on Windows 10 Home.
- cygpath
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
| 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.