add mem profile for debug