Profiling
Performance metrics for nvsipl_camera
can be displayed by specifying the
--profile
switch. The nvsipl_camera --profile
command line
option takes a file prefix as an argument and dumps the profiling timestamps into
file-prefix_cam_x_out_y.csv
for each camera and enabled output. The dumped
CSV file has the following columns:
For Capture Output
Capture Timestamp (us), Buffer Receive Timestamp (us)
For ISP Output
Capture Timestamp (us), Capture Done Event Timestamp (us), Buffer Receive Timestamp (us), Buffer Ready Timestamp (us).
You can calculate additional metrics using these timestamps. For example:
Buffer Receive Latency (ms) = (Buffer Receive Timestamp (us) - Capture Timestamp (us)) / 1000
Following is an example showing how to use this feature:
$ ./nvsipl_camera --platform-config "SF3324_DPHY_x4" --link-enable-masks "0x0001 0x0000 0x0000 0x0000" -d 0 --profile /tmp/sipl_profile