forked from fpco/ghc-prof-flamegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ghc-prof-flamegraph.cabal
45 lines (43 loc) · 1.7 KB
/
ghc-prof-flamegraph.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: ghc-prof-flamegraph
version: 0.2.0.0
synopsis: Generates flamegraphs from GHC .prof files.
license: MIT
license-file: LICENSE
author: Francesco Mazzoli
maintainer: [email protected]
copyright: (c) 2015 FP Complete Corporation
category: Testing
build-type: Simple
cabal-version: >=1.10
description:
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.
source-repository head
type: git
location: https://github.com/fpco/ghc-prof-flamegraph
executable ghc-prof-flamegraph
main-is: ghc-prof-flamegraph.hs
build-depends: base >=4.6 && <5
, filepath
, optparse-applicative
, process
other-modules: ProfFile
, Paths_ghc_prof_flamegraph
default-language: Haskell2010
ghc-options: -Wall