Your heart test , also known as an electrocardiogram or ECG, provides a snapshot of your heart's electrical function while you're relaxed . This routine procedure involves sticking small sensors to your upper body, arms, and legs . The ECG monitor then records these electrical signals , allowing your physician to assess for any problems that might