An electrocardiogram or EKG is a non-invasive test that measures the length and frequency of electrical impulses created by your heart pumping blood. EKGs can help your provider detect any heart abnormalities such as arrhythmias, blocked arteries and overall heart function.