Skip to content

Two RTS profiler cleanups

Daniel Gröber (dxld) requested to merge DanielG/ghc:rts-cleanup-prof into master

Commit messages:

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: Rename the nondescript initProfiling2 to refreshProfilingCCSs
Edited by Daniel Gröber (dxld)

Merge request reports