<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;" dir="ltr">
<p style="margin-top:0;margin-bottom:0"><span>"The caveat is, while the tool (llvm-xray convert) can generate arbitrarily large Chrome-loadable traces, the Chrome trace viewer can only handle so much data."</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>A tool like Trace Compass could help here, it does scale pretty well. (see
</span><a href="http://tracecompass.org/" class="OWAAutoLink" id="LPlnk938183" previewremoved="true"><span></span>tracecompass.org</a>)</p>
<p style="margin-top:0;margin-bottom:0">I'm replying here so a colleague who just suscribed to the mailing list can reply here.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Marc-André<br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> cfe-dev <cfe-dev-bounces@lists.llvm.org> on behalf of Dean Michael Berris via cfe-dev <cfe-dev@lists.llvm.org><br>
<b>Sent:</b> Tuesday, December 5, 2017 3:52 PM<br>
<b>To:</b> Brian Cain<br>
<b>Cc:</b> LLVM Developers; Keith Wyss; Clang Dev<br>
<b>Subject:</b> Re: [cfe-dev] XRay Trace of Clang, Loadable through Chrome Trace Viewer</font>
<div> </div>
</div>
<div dir="auto"><br>
<br>
<div id="x_AppleMailSignature">Sent from my iPhone</div>
<div><br>
On 6 Dec 2017, at 4:17 am, Brian Cain <<a href="mailto:brian.cain@gmail.com">brian.cain@gmail.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr"><br>
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On Tue, Dec 5, 2017 at 9:49 AM, Dean Michael Berris via cfe-dev
<span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
Hi cfe-dev@ and llvm-dev@,<br>
<br>
I've attached a Chrome trace-viewer readable trace of a clang built with XRay instrumentation (additional build/link flags="-fxray-instrument -fxray-instruction-threshold=<wbr>75") with the latest "top-of-trunk" version of clang with the recent updates to the
 XRay runtime supporting record filtering.<br>
<br>
To load the attached file, go to 'chrome://tracing' in your Chrome/Chromium browser and load the .gz file directly. Pressing '?' should give a help dialog.<br>
<br>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>This is an interesting feature.  Is it designed to accept arbitrary xray trace logs or only ones for/from Chrome/ium?</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
Yes, it works on any XRay trace generated with the logging implementations that come with XRay in compiler-rt.
<div><br>
</div>
<div>The example attached was of an instrumented Clang binary compiling C++ code. 😁</div>
<div><br>
</div>
<div>The caveat is, while the tool (llvm-xray convert) can generate arbitrarily large Chrome-loadable traces, the Chrome trace viewer can only handle so much data.</div>
<div><br>
</div>
<div>Cheers</div>
<div>
<blockquote type="cite">
<div dir="ltr">
<div class="x_gmail_extra">
<div class="x_gmail_quote">
<div></div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>