Skip to content
Snippets Groups Projects
Commit d89deeba authored by Matthew Pickering's avatar Matthew Pickering Committed by Marge Bot
Browse files

Profiling: Allow heap profiling to be controlled dynamically.

This patch exposes three new functions in `GHC.Profiling` which allow
heap profiling to be enabled and disabled dynamically.

1. startHeapProfTimer - Starts heap profiling with the given RTS options
2. stopHeapProfTimer  - Stops heap profiling
3. requestHeapCensus  - Perform a heap census on the next context
                        switch, regardless of whether the timer is enabled or not.
parent d8dc0f96
No related branches found
No related tags found
No related merge requests found
Showing
with 182 additions and 13 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment