It would be a heat cramp because when you have heat cramps you have sharp cramps in your legs and have very moist flushed skin. You can also have a mild fever, usually less than 102 degrees F. Hope this Helps :P
The diagnostic test that records the electrical activity of the heart is called ECG or Electrocardiogram. An ECG is a painless and simple test, which uses electrodes arranged and attached to your skin, and records the activity of the heart. ECG detects any abnormal rhythm and pattern of the heart beat and this helps doctors in diagnosing arrhythmias.