<div dir="ltr"><div dir="ltr">Hello gentlemen,<div><br></div><div>me again ...<br><br>I just did this before Gst.init()</div><div><br><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;line-height:18px;white-space:pre"><div>        os.environ[<span style="color:rgb(206,145,120)">"GST_DEBUG"</span>] = <span style="color:rgb(206,145,120)">"GST_TRACER:7"</span></div><div>        os.environ[<span style="color:rgb(206,145,120)">"GST_TRACERS"</span>] = <span style="color:rgb(206,145,120)">"latency(flags=element)"</span></div></div></div></div><br><div class="gmail_quote"><div class="gmail_attr">But nothing happens in the stdout. 🤷‍♂️<br><br>If I try<br><br><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Menlo,Monaco,"Courier New",monospace;font-size:12px;line-height:18px;white-space:pre"><div> Gst.debug_set_active(<span style="color:rgb(86,156,214)">True</span>)</div><div> Gst.debug_set_default_threshold(7)</div><div> os.environ[<span style="color:rgb(206,145,120)">"GST_TRACERS"</span>] = <span style="color:rgb(206,145,120)">"latency(flags=element)"</span><br></div></div><br>I get all the Traces as expected even without setting the GST_TRACERS env ?<br><br>I am a bit confused what should I see in the stdout if that would work?<br><br>Thanks, Michael<br><br> </div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr">Am So., 3. Mai 2020 um 15:52 Uhr schrieb Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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" target="_blank">t.i.m@zen.co.uk</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);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:0px 0px 0px 0.8ex;border-left:2px solid rgb(114,159,207);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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);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" rel="noreferrer" target="_blank">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>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div>