Add graph writer for diagnostics.
Add heapmap for (hopefully) denser tracking of allocations.