minor: formatting
Calculate average memory footprint for adaptive flushing.