Your heart exam , also known as an electrocardiogram or ECG, provides a record of your heart's electrical function while you're at rest . This standard procedure involves placing small electrodes to your chest , arms, and legs . The ECG device then displays these electrical waves , allowing your doctor to check for any abnormalities that might sugg