fix cpu and mem prof