add mem stats to

 - replace case statements with cpu constants