An electrocardiogram (EKG or ECG) is a test that checks for problems with the electrical activity of your heart. An EKG shows the heart's electrical activity as line tracings on paper. The spikes and dips in the line tracings are called waves.