add the memory size to the statistic