bgamari / ghc-debug

Moved to Haskell.org GitLab.
https://gitlab.haskell.org/ghc/ghc-debug
62 stars 10 forks source link

Hook into eventlog to trigger pause events #14

Open mpickering opened 5 years ago

mpickering commented 5 years ago

It should be possible to implement the eventlog API so that ghc-debug intercepts eventlog events.

Then if we have the eventlog events, then it is possible to pause under certain RTS conditions.

For example, pause when the stack reaches a certain size. Pause when the residency is a certain amount. Pause when a certain traceEvent occurs.