How to analyze the output of nvinfer plugin?

Hi all. We just wanted to know if there’s a method for analyzing outputs of gstreamer plugins like nvinfer, nvconvvid etc. How do we analyze what each plugin returns. We are thinking of writing a custom plugin for tracking rather than using nvtracker plugin that comes with deepstream. In order to do that, we want to analyze what is being returned/forwarded by source pad of nvinfer. How can we do this? We are relatively new to deepstream. So, any relevant documentation will certainly help.

You can refer to source code: gst-dsexample