An echocardiogram is performed to diagnose and manage certain heart conditions. It uses sound waves to create detailed images of the heart. It is a quick, painless and safe test which gives a lot of useful information about the heart. It can reveal a lot of useful information including damage to the heart muscle, valve problems, heart defects, heart size and heart function.