Your standard electrocardiogram, or ECG, offers a snapshot of your heart's electrical function while you're in rest . Essentially , it measures the waves that cause your heart to beat . Physicians use this test to examine for potential heart issues, such as abnormal rhythms, indications of a past heart attack , or electrolyte imbalances . While it