Measurement of the amount of air that the lungs may contain at various points in the respiratory cycle.