add progress bar when generating memory snapshot