Add support for enumerating the reachable objects in the heap
authorPeter Wang <novalazy@gmail.com>
Mon, 16 Jun 2014 11:05:05 +0000 (21:05 +1000)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 31 Jul 2015 09:06:47 +0000 (12:06 +0300)
commita20fa5174654eff73fd5164a9135646cc76108de
tree7b535c5112995ce1932d3894affe37c3aed209a2
parent06799865aaeb8aa08218aff0346e2144b635dd7b
Add support for enumerating the reachable objects in the heap
(Apply part of commit dbf2db8 from 'paulbone/mercury7_4_pbone' branch.)

This can be used to do heap profiling, helping the developer work out which
objects are live or what kinds of objects account for a lot of their heap
space.

* alloc.c:
* include/gc.h:
* include/private/gc_priv.h:
* reclaim.c:
    As above.
alloc.c
include/gc.h
include/private/gc_priv.h
reclaim.c