<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="text-align:left; direction:ltr;">
<div>Hi Geneviève, thanks for this.</div>
<div><br>
</div>
<div>For now, I'm focused on libbabeltrace. I think this is something my users will like to work with. They're mainly C hacks working on our kernel to start. I think they'll also like using the python bindings.</div>
<div><br>
</div>
<div>It would be awesome to have a stack that built on top of that that used the same APIs in whatever language. My current thinking is to build a prototype that visualizes using D3 in an Electron app, so JavaScript/TypeScript would be key there. I'd be happy
to help contribute to that. But that will probably be in the Babeltrace repo.</div>
<div><br>
</div>
<div>I'm still not clear how TraceCompass fits in but will start looking at that once I'm off the ground. At this stage of the game, as you can see from my work on CDT, whatever solution I plan on adopting has to plug into not only the Eclipse IDE, but HTML5
front ends like VS Code or just simple Electron apps or web pages as well. It's a pretty exciting new direction. Imagine visualizing traces using WebGL. We can do some pretty cool things that users will get a lot of value from.</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Doug.</div>
<div><br>
</div>
<div>On Fri, 2019-03-15 at 09:40 -0400, Geneviève Bastien wrote:</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<p>Hi Doug,</p>
<p>Welcome to the CTF ecosystem! <br>
</p>
<p>FYI, one thing I am working now on TraceCompass is to add support for scripting using the Eclipse EASE framework.
<br>
</p>
<p>In short, one could use python, javascript, ruby or groovy to interact with POJOs. We'll provide a simple API to get the trace events (the parsers are already available in TraceCompass, so all supported trace types will work), fill backend (state systems,
segment stores) and create time graph / XY views.</p>
<p>In a few weeks, I should be able to share a prototype for the community to try. I hope you can benefit from it.</p>
<p>Regards,</p>
<p>Geneviève<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 2019-03-12 11:23 a.m., Doug Schaefer wrote:<br>
</div>
<blockquote type="cite" cite="mid:484bb42bc0d287b251e2542e8d7e242ee72863b1.camel@blackberry.com" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<div>It should be easy to generate a random one with the class I mentioned below and fill it with 16 million events. BTW, two of the int fields are 5 and 10 bits respectively, but I'm not sure that matters (or at least it shouldn't).</div>
<div><br>
</div>
<div>I'll also take a look at the babeltrace code and see what I can see.</div>
<div><br>
</div>
<div>BTW, my focus on libbabeltrace is to allow for a full range of tooling for our users using the language of their choice. The python binding is particularly interesting. As we move forward into the new world of IDEs, I can see a node.js binding being interesting
as well. And it may even make sense to use it in Java tooling like TraceCompass using JNA. That's the vision at least, but first, baby steps ☺.</div>
<div><br>
</div>
<div>Doug.</div>
<div><br>
</div>
<div>On Tue, 2019-03-12 at 11:03 -0400, Jonathan Rajotte-Julien wrote:</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<pre>Hi Doug,</pre>
<pre>On Tue, Mar 12, 2019 at 02:56:26PM +0000, Doug Schaefer wrote:</pre>
<pre>Thanks, Matthew, I ended up flushing every 100K events and that seemed OK.</pre>
<pre>My biggest worry is on the read side. Babeltrace blew up on that file. It's a pretty simple trace (for now) with a single event class with 4 ints and a sequence of 32-bit unsigned ints which is usually only 2 elements long.</pre>
<pre>This is not I expect. Still eithet jgalar or eep might have a more insight on</pre>
<pre>this. CCing the lttng-dev mailing list.</pre>
<pre>Is there any way to share us a similar trace? Either with a generator or we can</pre>
<pre>provide a link for you to upload it. The current limit on bugs.lttng.org is a</pre>
<pre>bit too small for such trace.</pre>
<pre>Aside from that, am very pleased with the how easy CTF is to work with. Looking forward to doing more.</pre>
<pre>Doug.</pre>
<pre>On Tue, 2019-03-12 at 14:41 +0000, Matthew Khouzam wrote:</pre>
<pre>Hi Doug,</pre>
<pre>Great to hear you're coming to a standard! I don't know if trace compass will scale properly as I don't know what the trace configuration is.</pre>
<pre>I have one of our trace which has 16 million events, the size of each event is around 32 bytes giving me a 540MB file. My first attempt at simply writing out the CTF events without a flush ran out of virtual memory. I then flushed after every event which made each event take 32K. So I found a middle ground and the resulting stream file is close to the same size.</pre>
<pre>My suggestion is to have 1 MB packets. This makes seeking very efficient. If each event is 32 bytes, basically flush every 25k events or so.</pre>
<pre>Please keep us posted!</pre>
<pre>Matthew.</pre>
<pre>________________________________</pre>
<pre>From: <a href="mailto:tracecompass-dev-bounces@eclipse.org" moz-do-not-send="true">tracecompass-dev-bounces@eclipse.org</a> <<a href="mailto:tracecompass-dev-bounces@eclipse.org" moz-do-not-send="true">tracecompass-dev-bounces@eclipse.org</a>> on behalf of Doug Schaefer <<a href="mailto:dschaefer@blackberry.com" moz-do-not-send="true">dschaefer@blackberry.com</a>></pre>
<pre>Sent: Tuesday, March 12, 2019 10:30:15 AM</pre>
<pre>To: <a href="mailto:tracecompass-dev@eclipse.org" moz-do-not-send="true">tracecompass-dev@eclipse.org</a></pre>
<pre>Subject: [tracecompass-dev] Scalability</pre>
<pre>Hey gang,</pre>
<pre>We're finally starting to look at converting our custom traces into CTF so we can leverage tools like TraceCompass and, of course, contribute to it. One thing I quickly ran into is a scalability issue I'm seeing with libbabeltrace.</pre>
<pre>I have one of our trace which has 16 million events, the size of each event is around 32 bytes giving me a 540MB file. My first attempt at simply writing out the CTF events without a flush ran out of virtual memory. I then flushed after every event which made each event take 32K. So I found a middle ground and the resulting stream file is close to the same size.</pre>
<pre>But when I use babeltrace to print it out, I ran out of virtual memory. I then hand coded a reader and simply adding the trace to the context caused the memory issue. It really looks like libbabeltrace (version 1.5 from the Ubuntu 18.04 distro), tries to inflate the events into it's internal representation for the entire trace. I need to do more investigation to confirm that.</pre>
<pre>So my question for this list, would TraceCompass do better? Does it have it's own parsing libraries?</pre>
<pre>Thanks,</pre>
<pre>Doug</pre>
<pre>_______________________________________________</pre>
<pre>tracecompass-dev mailing list</pre>
<pre><a href="mailto:tracecompass-dev@eclipse.org" moz-do-not-send="true">tracecompass-dev@eclipse.org</a></pre>
<pre>To change your delivery options, retrieve your password, or unsubscribe from this list, visit</pre>
<pre><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.eclipse.org_mailman_listinfo_tracecompass-2Ddev&d=DwIBAg&c=yzoHOc_ZK-sxl-kfGNSEvlJYanssXN3q-lhj0sp26wE&r=NrrbvTHWa2Nbp_kAN0Hl1o3lM1WAwSes64uBjxjNhMc&m=ZoCx61VE_sHGa6j3DXehbqjX5P1NGEuDtEFaGORCh9k&s=qi9q1zvDaC9cJCci0y123O-j66M643YwxRJccJCzg_c&e=" moz-do-not-send="true">https://urldefense.proofpoint.com/v2/url?u=https-3A__www.eclipse.org_mailman_listinfo_tracecompass-2Ddev&d=DwIBAg&c=yzoHOc_ZK-sxl-kfGNSEvlJYanssXN3q-lhj0sp26wE&r=NrrbvTHWa2Nbp_kAN0Hl1o3lM1WAwSes64uBjxjNhMc&m=ZoCx61VE_sHGa6j3DXehbqjX5P1NGEuDtEFaGORCh9k&s=qi9q1zvDaC9cJCci0y123O-j66M643YwxRJccJCzg_c&e=</a></pre>
</blockquote>
<br>
<pre>_______________________________________________</pre>
<pre>tracecompass-dev mailing list</pre>
<pre><a class="moz-txt-link-abbreviated" href="mailto:tracecompass-dev@eclipse.org">tracecompass-dev@eclipse.org</a></pre>
<pre>To change your delivery options, retrieve your password, or unsubscribe from this list, visit</pre>
<pre><a class="moz-txt-link-freetext" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.eclipse.org_mailman_listinfo_tracecompass-2Ddev&d=DwMDaQ&c=yzoHOc_ZK-sxl-kfGNSEvlJYanssXN3q-lhj0sp26wE&r=NrrbvTHWa2Nbp_kAN0Hl1o3lM1WAwSes64uBjxjNhMc&m=AXjlhbxcRzd4fSiGbMwiy9b1nEq-usTDVgMuGARIGig&s=KZTLmhBOxh0wmvcdRm5Wn1xbWXuEtBDoIa8aBaIkHvI&e=">https://www.eclipse.org/mailman/listinfo/tracecompass-dev</a></pre>
<pre><br></pre>
</blockquote>
</blockquote>
</body>
</html>