Fix measuring sample apps.