Your baseline ECG provides a snapshot of your heart's electrical function while you're calm. It's a painless examination that measures the tiny electrical signals produced by your heart. Doctors use this reading to check for various cardiac issues , like irregular heartbeats , injury from a myocardial infarction , and other cardiac irregularities .