diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2020-12-07 13:19:28 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-03-03 08:12:29 -0500 |
commit | d89deeba47ce04a5198a71fa4cbc203fe2c90794 (patch) | |
tree | 8f879bbb0774ce686e1688cc638ef22179babf51 /includes/Rts.h | |
parent | d8dc0f96237fe6fe7081c04727c7c2573477e5cb (diff) | |
download | haskell-d89deeba47ce04a5198a71fa4cbc203fe2c90794.tar.gz |
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.
Diffstat (limited to 'includes/Rts.h')
-rw-r--r-- | includes/Rts.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/Rts.h b/includes/Rts.h index e093a4bcde..50a3f665de 100644 --- a/includes/Rts.h +++ b/includes/Rts.h @@ -194,6 +194,7 @@ void _assertFail(const char *filename, unsigned int linenum) /* Profiling information */ #include "rts/prof/CCS.h" +#include "rts/prof/Heap.h" #include "rts/prof/LDV.h" /* Parallel information */ |