Record memory stat in benchmarks