<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>On Sat, 2020-05-02 at 17:00 -0400, Nicolas Dufresne wrote:</div><pre><br></pre><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>There is currently no API to the tracers, this is something we should do, we we</pre><pre>already have few bits marked as unstable API because their API isn't yet in a</pre><pre>shape we are confident to freeze it.</pre><pre><br></pre><pre>From the time being, you need to set the env before starting the process or do</pre><pre>this before calling Gst.init():</pre><pre><br></pre><pre>      os.environ["GST_TRACERS"] = "latency(flags=element)"</pre><pre><br></pre><pre>There is no way to turn on and off at run-time for now.</pre></blockquote><pre><br></pre><pre>FWIW, we do have API access for tracers in git master, e.g. the leak<br>tracer can be accessed via GObject API after retrieving it via<br>gst_tracing_get_active_tracers(), to do snapshotting etc. So could</pre><pre>add something similar to other tracers if we wanted to and it seems</pre><pre>useful.</pre><pre><br></pre><pre>Cheers</pre><pre> Tim</pre></body></html>