rts: Divorce init of Heap profiler from CCS profiler
authorDaniel Gröber <dxld@darkboxed.org>
Wed, 10 Jul 2019 15:16:33 +0000 (17:16 +0200)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Tue, 16 Jul 2019 06:41:23 +0000 (02:41 -0400)
commit373c9cb379bd64c4d295becf3afce122a6e199f4
treed1d50715bb8d9fd90865268d54a2937839866d4f
parentdb948daea6c01c073f8d09a79fa5adda279fbf0c
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.
rts/ProfHeap.c
rts/ProfHeap.h
rts/Profiling.c
rts/RtsStartup.c