ghc-prof-flamegraph: Generates flamegraphs from GHC .prof files.
This is a small tool to convert GHC time profiling reports into a format understandable by the FlameGraph (https://github.com/brendangregg/FlameGraph) tool.
To use, first convert a `.prof` file into the flame graph format using
ghc-prof-flamegraph:
$ cat ~/src/packdeps/packdeps.prof | ghc-prof-flamegraph > packdeps.prof.folded
Then you can use the file to produce an svg image, using the
flamegraph.pl script:
$ cat packdeps.prof.folded | ~/src/FlameGraph/flamegraph.pl > packdeps.prof.svg
You can also generate a flamegraph using the allocation measurements,
using the --alloc flag, number of entries using --entries flag, number of
bytes allocated using --bytes. In order to use --bytes or --ticks flag one
have to run program with +RTS -P -RTS in order to get those measurements.
Downloads
- ghc-prof-flamegraph-0.2.0.0.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.1.0.0, 0.1.0.1, 0.1.1.0, 0.1.2.0, 0.1.2.1, 0.2.0.0, 0.2.0.1 |
|---|---|
| Dependencies | base (>=4.6 && <5), filepath, optparse-applicative, process [details] |
| License | MIT |
| Copyright | (c) 2015 FP Complete Corporation |
| Author | Francesco Mazzoli |
| Maintainer | francesco@fpcomplete.com |
| Category | Testing |
| Source repo | head: git clone https://github.com/fpco/ghc-prof-flamegraph |
| Uploaded | by FrancescoMazzoli at 2019-10-27T23:15:09Z |
| Distributions | NixOS:0.2.0.1 |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Executables | ghc-prof-flamegraph |
| Downloads | 5017 total (11 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 2019-10-28 [all 3 reports] |