summaryrefslogtreecommitdiff
path: root/rts/ProfHeap.h
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2019-07-10 17:16:33 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-07-16 02:41:23 -0400
commit373c9cb379bd64c4d295becf3afce122a6e199f4 (patch)
treed1d50715bb8d9fd90865268d54a2937839866d4f /rts/ProfHeap.h
parentdb948daea6c01c073f8d09a79fa5adda279fbf0c (diff)
downloadhaskell-373c9cb379bd64c4d295becf3afce122a6e199f4.tar.gz
rts: Divorce init of Heap profiler from CCS profiler
Currently initProfiling gets defined by Profiling.c only if PROFILING is defined. Otherwise the ProfHeap.c defines it. This is just needlessly complicated so in this commit I make Profiling and ProfHeap into properly seperate modules and call their respective init functions from RtsStartup.c.
Diffstat (limited to 'rts/ProfHeap.h')
-rw-r--r--rts/ProfHeap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/rts/ProfHeap.h b/rts/ProfHeap.h
index aa4056b111..f63433fece 100644
--- a/rts/ProfHeap.h
+++ b/rts/ProfHeap.h
@@ -11,8 +11,9 @@
#include "BeginPrivate.h"
void heapCensus (Time t);
-uint32_t initHeapProfiling (void);
+void initHeapProfiling (void);
void endHeapProfiling (void);
+void freeHeapProfiling (void);
bool strMatchesSelector (const char* str, const char* sel);
#if defined(PROFILING)