Hi Jose,<div><br></div><div> Thanks for your reply. Tried that but it complains saying cannot find wrappers /egltrace.so . I have checked the wrappers folder and it doesn&#39;t have any egltrace.so <div><br></div><div>reg,</div>
<div>kalyan<br><br><div class="gmail_quote">On Thu, Jan 12, 2012 at 12:56 PM, José Fonseca <span dir="ltr">&lt;<a href="mailto:jose.r.fonseca@gmail.com">jose.r.fonseca@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Thu, Jan 12, 2012 at 9:40 AM, kalyan reddy &lt;<a href="mailto:kalyanreddy2005@gmail.com">kalyanreddy2005@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am a new user to api trace. I have been trying to get a trace out of<br>
&gt; chromium(when using webgl) on meego. I have used the following command :<br>
&gt;<br>
&gt; apitrace trace &quot;..&lt;apppath&gt;/chromium-browser&quot; --user-gl=egl<br>
&gt; --ignore-gpu-blacklist<br>
&gt; http:://<a href="http://webglsamples.googlecode.com/hg/field/field.html" target="_blank">webglsamples.googlecode.com/hg/field/field.html</a><br>
&gt;<br>
&gt; chromium is launched and I can see the fps and field page correctly. I close<br>
&gt; the browser and return to terminal. I cannot find any .trace file nor any<br>
&gt; errors are shown up. Any tips??<br>
&gt;<br>
&gt; reg,<br>
&gt; kalyan<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; apitrace mailing list<br>
&gt; <a href="mailto:apitrace@lists.freedesktop.org">apitrace@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/apitrace" target="_blank">http://lists.freedesktop.org/mailman/listinfo/apitrace</a><br>
&gt;<br>
<br>
There are several things to keep in mind here:<br>
- chrome does a lot of inter-process comunnication, so it is important<br>
to ensure that the renderer process is forked from the right parent<br>
and actually gets the LD_PRELOAD environment variable. There are some<br>
chrome options that help (--temp-profile --user-data-dir<br>
--single-process)<br>
- when tracing EGL you need to run apitrace trace --api egl ....<br>
<br>
This works for me when using GL:<br>
<br>
$ ./apitrace trace  --api gl chromium --temp-profile<br>
--ignore-gpu-blacklist<br>
<a href="http://webglsamples.googlecode.com/hg/field/field.html" target="_blank">http://webglsamples.googlecode.com/hg/field/field.html</a><br>
apitrace: redirecting dlopen(&quot;libGL.so.1&quot;, 0x1)<br>
apitrace: tracing to /home/jfonseca/projects/apitrace/chromium.2.trace<br>
apitrace: warning: unknown function &quot;glBindFragDataLocationIndexedARB&quot;<br>
apitrace: warning: unknown function &quot;glBlitFramebufferANGLE&quot;<br>
apitrace: warning: unknown function &quot;glEGLImageTargetTexture2DOES&quot;<br>
apitrace: warning: unknown function &quot;glRenderbufferStorageMultisampleANGLE&quot;<br>
apitrace: redirecting dlopen(&quot;libGL.so.1&quot;, 0x102)<br>
[3:3:555073509122:ERROR:nss_util.cc(394)] Error initializing NSS<br>
without a persistent database: libsoftokn3.so: cannot open shared<br>
object file: Permission denied<br>
apitrace: redirecting dlopen(&quot;libGL.so.1&quot;, 0x1)<br>
apitrace: tracing to /home/jfonseca/projects/apitrace/chromium.3.trace<br>
apitrace: warning: unknown function &quot;glBindFragDataLocationIndexedARB&quot;<br>
apitrace: warning: unknown function &quot;glBlitFramebufferANGLE&quot;<br>
apitrace: warning: unknown function &quot;glEGLImageTargetTexture2DOES&quot;<br>
apitrace: warning: unknown function &quot;glRenderbufferStorageMultisampleANGLE&quot;<br>
apitrace: redirecting dlopen(&quot;libGL.so.1&quot;, 0x102)<br>
<br>
And this *should* work for EGL:<br>
<br>
$ ./apitrace trace  --api egl chromium --temp-profile --user-gl=egl<br>
--ignore-gpu-blacklist<br>
<a href="http://webglsamples.googlecode.com/hg/field/field.html" target="_blank">http://webglsamples.googlecode.com/hg/field/field.html</a><br>
<br>
But by some reason chrome on my system refuses to use EGL, and always<br>
uses GL, so it doesn&#39;t. But that&#39;s a chrome issue, and not apitrace&#39;s.<br>
<br>
Jose<br>
</blockquote></div><br></div></div>