smalloc: implement HeapProfiler

To properly report the use of external memory each Persistent must be
hooked into the HeapProfiler.