Spirometry is a common pulmonary function test that measures how much air you can inhale and exhale, as well as how quickly you can exhale. This test is often used to diagnose conditions like asthma, chronic obstructive pulmonary disease (COPD), and other disorders that affect breathing.