I exported these 2 ENV variables
To enable frame latency measurement, run this command on the console:
$ export NVDS_ENABLE_LATENCY_MEASUREMENT=1
To enable latency for all plugins, run this command on the console:
$ export NVDS_ENABLE_COMPONENT_LATENCY_MEASUREMENT=1
This is the result I got when running with this DS example deepstream-app -c source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt
I have 2 questions: Q1: component latency is the time which the model run the inference for a batch, right? and is it in milisecond or second or any other?
ex: Comp name = primary_gie in_system_timestamp = 1679977821364.743896 out_system_timestamp = 1679977821365.792969 component latency= 1.049072
Q2: How do you guys calculate Frame latency? I saw it took Frame latency = 265.649902 ???
ex: Source id = 0 Frame_num = 56 Frame latency = 265.649902 (ms)
You can refer to the open source code: sources\includes\nvds_latency_meta.h. Try to set the nvds_set_input_system_timestamp API in your own plugin.
If you have any other issues, please open a new topic. Thanks