Added MemoryStat infrastructure, not turned on by default yet.