stackcollapse-ghc: Program to fold GHC prof files into flamegraph input
Program to fold GHC prof files into flamegraph input The reasons why this package exists despite other packages with similar functionality (not including the NIH syndrome) boil down to:
it does only one thing (stack collapsing), so it's up to the user to install flamegraph scripts, pass options etc (in my eyes it's not a limitation, on the contrary),
output control: annotations (color profiles), extending traces from a configured set of modules with the source locations or toggling qualified names,
precise ticks and/or bytes with
-p
reports,it's fast
Basic usage
Visualize ticks
If you have a detailed prof file (-P
RTS option)
stackcollapse-ghc prof_file | flamegraph.pl --title 'Example' --subtitle 'Time' --countname ticks > path_to_svg
If you have a standard prof file (-p
RTS option)
stackcollapse-ghc -p prof_file | flamegraph.pl --title 'Example' --subtitle 'Time' --countname ticks > path_to_svg
Visualize allocations
If you have a detailed prof file (-P
RTS option)
stackcollapse-ghc --alloc prof_file | flamegraph.pl --title 'Example' --subtitle 'Bytes allocated' --countname bytes > path_to_svg
If you have a standard prof file (-p
RTS option)
stackcollapse-ghc --alloc -p prof_file | flamegraph.pl --title 'Example' --subtitle 'Bytes allocated' --countname bytes > path_to_svg
See the full README for details.
[Skip to Readme]
Downloads
- stackcollapse-ghc-0.0.1.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.1, 0.0.1.1, 0.0.1.2, 0.0.1.3, 0.0.1.4 |
---|---|
Change log | CHANGELOG.md |
Dependencies | base (>=4.12.0.0 && <4.14), bytestring (>=0.10.8), containers (>=0.6.0.1), extra, foldl (==1.4.6), recursion-schemes (==5.1.3), rosezipper (==0.2), safe (>=0.3 && <0.4), text (>=1.2.3.0), transformers (>=0.5.6 && <0.5.7) [details] |
Tested with | ghc ==8.6.5, ghc ==8.8.2, ghc ==8.8.3 |
License | GPL-3.0-only |
Copyright | 2020 Marcin Rzeźnicki |
Author | Marcin Rzeźnicki |
Maintainer | Marcin Rzeźnicki <marcin.rzeznicki@gmail.com> |
Category | Profiling |
Home page | https://github.com/marcin-rzeznicki/stackcollapse-ghc |
Bug tracker | https://github.com/marcin-rzeznicki/stackcollapse-ghc/issues |
Source repo | head: git clone https://github.com/marcin-rzeznicki/stackcollapse-ghc.git |
Uploaded | by rzeznik at 2020-05-25T01:22:40Z |
Distributions | |
Executables | stackcollapse-ghc |
Downloads | 1016 total (25 in the last 30 days) |
Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
Your Rating | |
Status | Docs not available [build log] Last success reported on 2020-05-25 [all 2 reports] |