Anaesthesia

apnography is used for assessment of ?