Your resting electrocardiogram, or ECG, provides a record of your heart's electrical function while you're at a relaxed state . Basically , it measures the waves that trigger your organ to pump . Doctors use this procedure to assess for potential heart issues, such as abnormal rhythms, indications of a prior heart attack , or issues with minerals .