A resting electrocardiogram (ECG), also known as a 12-lead ECG, is a frequently performed test that records the electrical activity of your cardiac muscles. During this test, small electrodes are attached to your chest, arms and legs to monitor the regular impulses that control your heart's contraction. A resting ECG can aid doctors in detecting a