Add memory leak detection.
Add heap profiling metrics.