During a TEE, your doctor can figure out if all the parts of the heart wall are working equally to make your heart pump. Parts that move weakly may have been damaged during a heart attack or may not be getting enough oxygen. A TEE lets your doctor see how strong the heart muscle is after a heart attack.