An electrocardiogram records electrical signals in the heart. This is a common, painless test used to quickly detect heart problems and monitor heart health. The ECG is often done in a doctor's office, clinic, or hospital room. ECG devices are standard equipment in operating rooms and ambulances. Some personal devices, such as smartwatches, offer ECG monitoring.