Your heart exam , also known as an electrocardiogram or ECG, provides a view of your heart's electrical function while you're at rest . This routine test involves sticking small electrodes to your torso , arms, and legs . The ECG device then displays these electrical patterns, allowing your doctor to check for any abnormalities that might indicate