A profilometer is a precision equipment used to measure the shape of various mechanical parts' lines…