Automated wear measurement on a computerized profilometer