Your resting electrocardiogram, or ECG, gives a snapshot of your cardiac electrical function while you're during rest . Essentially , it measures the waves that cause your heart to pump . Physicians use this procedure to examine for existing cardiac problems , such as irregular heartbeats , signs of a previous heart attack , or electrolyte imbalanc