rts: Prepare Heap Traversal for Root Profiling
This PR was split-off from !1433 (closed). It includes:
- improvements to the heap traversal code (subtree completion callback),
- a test (finally) for the visitation order of a traversal of a synthetic heap,
- refactoring of the ProfHeap header to allow registering census counters from outside the ProfHeap module and
- some cleanups.
I belive this subset of changes should be in a mergeable state already but I haven't gotten much review of these changes in the other PR.
-
are either individually buildable or squashed -
have commit messages which describe what they do (referring to [Notes][notes] and tickets using #NNNN
syntax when appropriate) -
have added source comments describing your change. For larger changes you likely should add a [Note][notes] and cross-reference it from the relevant places. -
add a testcase to the testsuite.