Your resting heart tracing provides a view of your heart's electrical function while you're relaxed . It's a painless test that records the electrical impulses produced by your heart. Doctors use this information to check for various heart problems, like arrhythmias , injury from a heart attack , and various cardiac abnormalities . Don't be concern