Skip to content

About

WIP: ghc-debug analysis tools for graphql-engine

Resources

Stars

3 stars

Watchers

4 watching

Forks

Repository files navigation

ghc-debug analysis and dump routines, for Hasura

These have hard-coded defaults to work easily with graphql-engine's ghc-debug instrumentation but should be easily adapted to any haskell program. Analysis passes should work with any compatible dump.

Usage

TODO (you'll need to read the code), but e.g. to take a snapshot:

hasura-debug --take-snapshot

...to analyze and generate a closure graph (identical info table nodes folded together):

hasura-debug --analyze-snapshot ClusteredHeapGML 0 chinook.first_replace

The excellent program graphia can be used to visually explore such a graph, and interactively filter, analyze etc. Here, for instance we've just loaded a dump and styled edges from thunks as red:

graphia UI example

About

WIP: ghc-debug analysis tools for graphql-engine

Resources

Stars

3 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages