Description
Parser for GHC's JSON profiling output.
Description
Parser for GHC's JSON profiling output produced by `-pj`.
README.md
ghc-prof-aeson
Somewhere along the way in GHC 8.2.x it became possible to output profiling output in JSON form. This is much more friendly for tooling as usual profiling format differs based the exact flags, identifier names, nesting, heap profiling flags and phase of the moon. More than once have we fallen to a parse failure in ghc-prof-flamegraph.
This is a very simple package that parses the profiling JSON output and gives you a Haskell data structure to work with instead. This should completely remove random parse failures due to weird formatting or at the very least, provide better error messages.