A myoglobin test measures the amount of myoglobin in your blood or urine. Myoglobin is a protein found in your heart and skeletal muscles. Used mainly to to detect muscle damage, such as from a heart attack or burns OR to help determine if muscle tissue has been injured.