Your heart test , also check here known as an electrocardiogram or ECG, provides a record of your heart's electrical function while you're at rest . This simple procedure involves placing small sensors to your upper body, arms, and legs . The ECG machine then records these electrical patterns, allowing your physician to check for any irregularities