<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le dim. 3 mai 2020 06 h 30, Tim-Philipp Müller <<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div 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></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Yes, though the leak tracer still need to be activated by env iirc. The leak tracer can only work if it's enabled before gst_init(). While some other tracers, like latency tracer could with some API be activated and deactivated completely at runtime (without paying an overhead when deactivated). Just saying, as it would be sad to use the same API for these two cases.</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="text-align:left;direction:ltr"><pre><br></pre><pre>Cheers</pre><pre> Tim</pre></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>