Add memory footprint measurer.