implmentation for memory STAT (#6)