How to Get Tracker History

Hi,
I am new on Deepstream sdk. I want to get the history of tracker mean frame or tracker id wise detail of every object associated with tracker. how should I go for this please help me out I am using Deepstream-4.0.2 test-app 2.

Actually I want result like this image which I have attached below.

Thanks

You can refer https://devtalk.nvidia.com/default/topic/1061798/deepstream-sdk/how-to-obtain-previous-states-of-tracked-object-/