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.4.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
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.16), bytestring (>=0.10.8), containers (>=0.6.0.1), extra, foldl (>=1.4.6 && <1.5), recursion-schemes (>=5.2 && <5.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, ghc ==8.10.1, ghc ==8.10.2, ghc ==8.10.3, ghc ==9.0.1 |
License | GPL-3.0-only |
Copyright | 2020-2021 Marcin Rzeźnicki |
Author | Marcin Rzeźnicki |
Maintainer | Marcin Rzeźnicki <marcin.rzeznicki@gmail.com> |
Revised | Revision 1 made by rzeznik at 2021-10-10T19:51:49Z |
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 2021-05-10T01:35:12Z |
Distributions | |
Executables | stackcollapse-ghc |
Downloads | 1019 total (17 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 2021-05-10 [all 3 reports] |