If you want to optimize the end-to-end latency of your processing pipeline, you can use the latency measurement method in DeepStream.
To enable frame delay measurement, run the following command on the console:
export NVDS_ENABLE_LATENCY_MEASUREMENT=1
To enable delay for all plugins, run the following command on the console:
export NVDS_ENABLE_COMPONENT_LATENCY_MEASUREMENT=1