Generates heap snapshots during selected docpad events