not really known
Go to file
2021-08-17 11:22:20 +02:00
FlameGraph@a8d807a11c Update stack & flamegraph with minor fixes 2018-02-05 22:24:39 +01:00
.gitignore Update stack & flamegraph with minor fixes 2018-02-05 22:24:39 +01:00
.gitmodules Automatically invoke flamegraph.pl to get pretty graph 2017-07-19 22:50:55 +03:00
.travis.yml Add .travis.yml 2015-04-21 19:09:20 +02:00
ghc-prof-flamegraph.cabal cabal bump 2021-08-17 11:22:15 +02:00
ghc-prof-flamegraph.hs Automatically invoke flamegraph.pl to get pretty graph 2017-07-19 22:50:55 +03:00
LICENSE Change license to MIT. 2015-04-21 19:01:16 +02:00
ProfFile.hs Avoid dependency on base 4.8 (isSubsequenceOf) 2017-02-23 22:45:50 +01:00
README.md Reflect changes in README 2017-07-19 22:50:57 +03:00
Setup.hs Add Setup.hs to make Travis happy. 2015-04-24 09:59:44 +02:00
stack.yaml update stackage LTS 2021-08-17 11:22:20 +02:00

ghc-prof-flamegraph

Build Status

This is a small tool to convert GHC time profiling reports into a format understandable by the FlameGraph tool.

Install

cabal install

Usage

First convert a .prof file into the flame graph svg:

$ cat ~/src/packdeps/packdeps.prof | ghc-prof-flamegraph > packdeps.prof.svg

Or, alternatively, just pass the .prof file as an argument. The tool will then create corresponing .svg file:

$ ghc-prof-flamegraph ~/src/packdeps/packdeps.prof
Output written to ~/src/packdeps/packdeps.svg

The previous command will produce ~/src/packdeps/packdeps.svg file.

You can customize the behavior of the underlying flamegraph.pl by passing options via framegraph-option. For example, you can customize the title:

$ ghc-prof-flamegraph ~/src/packdeps/packdeps.prof '--flamegraph-option=--title=Package dependencies'
Output written to ~/src/packdeps/packdeps.svg

You can also generate a flamegraph using the allocation measurements, using the --alloc flag.