check if latency exists before using it in app_profile