An electrocardiogram is a recording of the electrical activity of your heart. Electrode stickers are placed on your chest and connected by wires to a recording machine. Your heart’s electrical signals produce a pattern on graph paper in the ECG. By analysing the pattern of these waves, your doctor can often determine what type of arrhythmia you have. ECG testing can be done at rest, or while you are exercising on a treadmill.