how to use tracer like latency leaks with api via code programatically

Nicolas Dufresne nicolas at
Fri Dec 13 18:09:34 UTC 2019

Le vendredi 13 décembre 2019 à 05:18 -0600, chakra a écrit :
> Hi,
> I have a typical pipeline as below,
> *rtspsrc->rtph264depay->rtph264pay->webrtcbin*
> I want measure the exact latency introduced by pipeline in processing the
> buffers and also to detect if any leaks. 
> I found a way using TRACER
> But the issues happens on my setup randomly and not always, and I cannot
> keep the log enabled always as with below environment variables,
> GST_TRACERS=latency
> So I am looking for a API(Code) way to enable and fetch tracer details
> dynamically from pipeline on demand.

The leak tracer can only work if it's enabled from the beginning, as it
needs to track the allocation to find leaks. But future version of
GStreamer introduce new action signal that let you "scope" the tracing
at run-time. Not compiled doc yet, as far as I know.

There is no API yet to enable/disable other tracers at run-time. It is
something that has been discussed, and is likely wanted. That would
need to be designed and developed. I don't know in what form it will
exist. Unlike the leak tracers, most tracers are stateless, so they
don't maintain any log, so fetching is not really possible.

> I could see some details here
> on using it, but could not get a clear example to apply it
> If some one can suggest an example/hint on this it would be helpful to
> continue 
> Thanks
> --
> Sent from:
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the gstreamer-devel mailing list