<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Hi Nicolas,</div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> Thanks for jumping in. Our goal with GstShark is to provide a tool to developers so they can identify bottlenecks in the pipelines in an easy, visual way. The first step towards that was to add CTF support to the project. Next we wanted to provide a nice visualisation tool to consume this CTF and plot the data, even en real time. We never quite got to the later (yet).</div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> It would be great if we could use your tracers as well, and eventually merge ours into mainline. That would leave GstShark as an independent front-end, and RidgeRun would focus on developing hardware specific tracers. A good starting point for the transition is to add CTF support to your tracers. We can clean up the CTF support and prepare a merge request into GStreamer.</div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Would that be something someone on your team could review and work with us to merge in mainline? </div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Regards,</div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Michael</div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">PD:</div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><blockquote type="cite" class=""><span class="" style="float: none; display: inline !important;">For cpuusage, that sounds very </span><span class="" style="float: none; display: inline !important;">similar to upstream rusage tracer. </span><span class="">Could be nice if someone tells me</span></blockquote><blockquote type="cite" class=""><span class="" style="float: none; display: inline !important;">the difference.</span></blockquote><br class=""></div><div class="" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">The CPU tracers is simply that, prints the CPU usage every N seconds. To do so it parses /proc/stat instead of using getrusage() as you do. There is no reason to keep it if rusage is upstream, it’s there because we weren’t aware of yours back then on 1.7 when tracing first started. We need the CTF output though.</div><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 4, 2019, at 8:43 PM, Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca" class="">nicolas@ndufresne.ca</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Le mardi 04 juin 2019 à 21:29 -0400, John Hanks a écrit :</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">This seems to work with the command line example but when I try it from<span class="Apple-converted-space"> </span><br class="">my C-program using these lines in the code:<br class=""><br class="">setenv("GST_TRACERS","latency(flags=pipeline+elemen+reported)",TRUE);<br class=""> setenv("GST_DEBUG","GST_TRACER:7" ,TRUE);<br class=""><br class="">I get no 'trace' output. Any idea what am I doing wrong?<br class=""></blockquote><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Do you properly set the env before calling gst_init() (or any variant</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">of this) ?</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class="">John<br class=""><br class="">On 5/31/19 08:11, Nicolas Dufresne wrote:<br class=""><blockquote type="cite" class="">Le jeudi 30 mai 2019 à 22:30 -0400, John Hanks a écrit :<br class=""><blockquote type="cite" class="">In case others are having similar problems. gst-shark is not providing the output it should.<br class="">Has anyone else had similar issues?<br class=""></blockquote>The latency and interlatency tracers in GstShark are no longer useful<br class="">in my opinion. Julian and I (Collabora) have fixed many issues and came<br class="">up with a completely upstream solution for this.<br class=""><br class="">Since 1.16, you can now use the upstream latency tracer to get three<br class="">type of information:<br class=""><br class=""> - Complete pipeline latency<br class=""> - Per element latency (not the cumulative like interlatency did)<br class=""> - Per element reported latency<br class=""><br class="">To enable all of these:<br class=""><br class="">GST_TRACERS="latency(flags=pipeline+elemen+reported)" GST_DEBUG=GST_TRACER:7 ./...<br class=""><br class=""><br class="">The initial issue we had with the RidgeRun implementation was a bug<br class="">inherited from the original upstream tracer. The time spent in the the<br class="">wait function of the sink was included. We also found that the<br class="">cumulative latency wasn't so nice to debug the reported latency. The<br class="">reported latency tracing is completely new. That being said, thanks to<br class="">RidgeRun for the proof of concept.<br class=""><br class="">Nicolas<br class=""><br class=""><blockquote type="cite" class="">John<br class=""><br class=""><br class="">-------- Forwarded Message --------<br class="">Subject:<span class="Apple-tab-span" style="white-space: pre;"> </span>Vsicorp: Problems with GstShark - RidgeRun<br class="">Date:<span class="Apple-tab-span" style="white-space: pre;"> </span>Wed, 29 May 2019 14:50:45 +0000 (GMT)<br class="">From:<span class="Apple-tab-span" style="white-space: pre;"> </span>Carlos Rodriguez <<a href="mailto:carlos.rodriguez@ridgerun.com" class="">carlos.rodriguez@ridgerun.com</a>><br class="">To:<span class="Apple-tab-span" style="white-space: pre;"> </span>John Hanks <<a href="mailto:jhanks@vsicorp.com" class="">jhanks@vsicorp.com</a>>, support <<a href="mailto:support@ridgerun.com" class="">support@ridgerun.com</a>><br class="">CC:<span class="Apple-tab-span" style="white-space: pre;"> </span>Miguel Angel Taylor López <<a href="mailto:miguel.taylor@ridgerun.com" class="">miguel.taylor@ridgerun.com</a>><br class=""><br class=""><br class="">Hi John,<br class=""><br class="">Thanks for your interest in our products and services. RidgeRun is a company with over a decade of embedded Linux experience supporting NVIDIA, Xilinx, Freescale/NXP, and Texas Instruments SoC. RidgeRun focuses on embedded Linux and GStreamer. Many, but not all, of our customers are doing some sort of audio / video streaming ( <a href="https://shop.ridgerun.com/collections/all" class="">https://shop.ridgerun.com/collections/all</a>).<br class=""><br class="">Miguel (CC'ed) will help you with this GstShark problem. He will provide support shortly.<br class=""><br class="">Regards,<br class="">- Carlos R.<br class="">----------------------------------------------------------------------------------------------<br class="">Ticket Name: Problems with GSTShark<br class=""><br class="">Ticket Description:<br class=""><br class="">I've been working with gstreamer for about a year and wanted to use your tools to profile my working pipelines (actually, programs) so I could debug future problems. I followed the instructions to 'git', make and install the code but I must have done something wrong. The only time it seems to do anything is when I set GST_TRACERS=latency. It then displays the latency in the running window like this:<br class=""><br class="">0:00:01.739608128 4356 0xbb04a0 TRACE GST_TRACER :0:: latency, src=(string)videotestsrc0_src, sink=(string)fakesink0_sink, time=(guint64)1558941909, ts=(guint64)1739572905;<br class="">0:00:01.773075049 4356 0xbb04a0 TRACE GST_TRACER :0:: latency, src=(string)videotestsrc0_src, sink=(string)fakesink0_sink, time=(guint64)1588456647, ts=(guint64)1773053449;<br class="">0:00:01.806234476 4356 0xbb04a0 TRACE GST_TRACER :0:: latency, src=(string)videotestsrc0_src, sink=(string)fakesink0_sink, time=(guint64)1617668782, ts=(guint64)1806211230;<br class=""><br class="">This output is odd because what I read says the it should create a new subdirectory and dump the information in a file. Even when I set that directory (GST_SHARK_LOCATION), it still dumps latency o the screen and and never creates a file.<br class=""><br class="">If I try any of the other tracers (cpuusage,framerate, etc) it just hangs after starting the pipeline - and that is your example pipelines from the wiki.<br class=""><br class="">I'm guessing I must have done something wrong with the installation but cannot figure out what.<br class=""><br class="">I'm running Ubuntu 16.04.6.<br class=""><br class="">Any ideas what I am doing wrong?<br class=""><br class="">John<br class=""><br class=""><br class=""><br class="">Tuesday, May 28, 2019 8:05:08 PM CST, John Hanks <<a href="mailto:jhanks@vsicorp.com" class="">jhanks@vsicorp.com</a>>:<br class="">_______________________________________________<br class="">gstreamer-devel mailing list<br class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br class=""></blockquote>_______________________________________________<br class="">gstreamer-devel mailing list<br class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br class=""></blockquote>_______________________________________________<br class="">gstreamer-devel mailing list<br class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br class=""></blockquote><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">gstreamer-devel mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">gstreamer-devel@lists.freedesktop.org</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></div></blockquote></div><br class=""></body></html>