https://github.com/fuuzetsu/ghc-prof-aeson
GHC JSON profiling output decoding
https://github.com/fuuzetsu/ghc-prof-aeson
Last synced: 11 months ago
JSON representation
GHC JSON profiling output decoding
- Host: GitHub
- URL: https://github.com/fuuzetsu/ghc-prof-aeson
- Owner: Fuuzetsu
- License: bsd-3-clause
- Created: 2018-03-01T17:57:16.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-02T00:39:35.000Z (almost 8 years ago)
- Last Synced: 2025-03-24T08:57:35.749Z (11 months ago)
- Language: Haskell
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
# ghc-prof-aeson [![Build Status][travisbadge]][travisurl] [![Build Status][appbadge]][appurl]
Somewhere along the way in GHC 8.2.x it became possible to output
[profiling output in JSON
form](https://downloads.haskell.org/~ghc/8.2.2/docs/html/users_guide/profiling.html#json-profile-format).
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](https://github.com/fpco/ghc-prof-flamegraph/issues/10).
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.
[travisbadge]: https://travis-ci.org/Fuuzetsu/ghc-prof-aeson.svg?branch=master
[travisurl]: https://travis-ci.org/Fuuzetsu/ghc-prof-aeson
[appbadge]: https://ci.appveyor.com/api/projects/status/github/Fuuzetsu/ghc-prof-aeson?branch=master&svg=true
[appurl]: https://ci.appveyor.com/project/Fuuzetsu/ghc-prof-aeson