XDK heap profiler collector

This is a V8 part of the XDK heap profiler patch
Is this a temp debugging code? If it is, please remove it. Please put meaningful comments here.