​Electrocardiogram (ECG) is a diagnostic test that records the electrical activity of the heart. It is a non-invasive procedure that involves placing electrodes on the chest, arms, and legs, which then detect the electrical signals generated by the heart