To analyze a program to determine how much time is spent in different parts of the program during execution.