Single-shot temporal profile measurement of a soft X-ray laser pulse