Add an option to track how much memory is accessed.