Profilometers work by means of scanning a mechanical stylus across the sample or through non-contact methods.