Heap diagnostic tool