Electrocardiography (ECG) is a non-invasive diagnostic tool used to measure the electrical activity of the heart. It provides a graphical representation of the heart's rhythm and conduction pathways, which is critical in diagnosing various cardiac conditions. In toxicology, ECG plays a significant role in identifying the cardiac effects of certain toxins and drugs.