Manometry is a diagnostic technique used to measure pressure within body cavities, often employed to evaluate the function of organs like the esophagus, rectum, or bladder. By assessing pressure changes, it helps diagnose motility disorders and other dysfunctions related to muscular contractions in these areas.