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