add memory usage to statistic