The controlled heating of a rock sample in an oxygen-free atmosphere to generate and measure its hydrocarbons.