As the Sample Analysis at Mars (SAM) suite of instruments on NASA's Curiosity Mars rover heats a sample, gases are released (or 'evolved') from the sample and can be identified using SAM's quadrupole mass spectrometer.