Add memory usage to stats.