Records electrical activity of the heart. Detects arrhythmias, heart attacks, and cardiac abnormalities.