<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 2, 2013 at 12:13 AM, Rajib Nath <span dir="ltr"><<a href="mailto:rknath@ucsd.edu" target="_blank">rknath@ucsd.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hello,<div>We are trying to collect openGLES traces from android application  in particular templerun. </div>
<div>We followed the exact same procedures that you have in the Dalvik.markdown in apitrace repository. </div>
<div><br></div><div>We have changed the init.rc file to preload egltrace.so before zygote </div><div><br></div><div>Then we executed the following commands ... </div><div><pre style="white-space:pre-wrap;margin-top:15px;margin-bottom:15px;padding:6px 10px;border:1px solid rgb(204,204,204);font-size:13px;font-family:Consolas,'Liberation Mono',Courier,monospace;background-color:rgb(248,248,248);line-height:19px;overflow:auto;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;color:rgb(51,51,51)">
<code style="margin:0px;padding:0px;border:none;font-size:12px;font-family:Consolas,'Liberation Mono',Courier,monospace;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">PROCNAME=com.imangi.templerun2
adb shell setprop wrap.$PROCNAME LD_PRELOAD=/data/egltrace.so
adb shell setprop debug.apitrace.procname $PROCNAME</code></pre></div><div><br></div><div>The following command does not work to start templerun </div><div><div class="im"><pre style="white-space:pre-wrap;margin-top:15px;margin-bottom:15px;padding:6px 10px;border:1px solid rgb(204,204,204);font-size:13px;font-family:Consolas,'Liberation Mono',Courier,monospace;background-color:rgb(248,248,248);line-height:19px;overflow:auto;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;color:rgb(51,51,51)">
<code style="margin:0px;padding:0px;border:none;font-size:12px;font-family:Consolas,'Liberation Mono',Courier,monospace;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">adb shell am start -S $PROCNAME
</code></pre></div><div><code style="margin:0px;padding:0px;border:none;font-size:12px;font-family:Consolas,'Liberation Mono',Courier,monospace;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">says no intent supplied ... </code></div>

<div><code style="margin:0px;padding:0px;border:none;font-size:12px;font-family:Consolas,'Liberation Mono',Courier,monospace;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px"><br>

</code></div><div><code style="margin:0px;padding:0px;border:none;font-size:12px;font-family:Consolas,'Liberation Mono',Courier,monospace;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">Then we tried the following command </code></div>

</div><div><br></div><div>adb shell am start -a android.intent.action.MAIN -n com.imangi.templerun2/com.unity3d.player.UnityPlayerNativeActivity <br></div><div><br clear="all" style="font-family:arial,sans-serif;font-size:13px">

<div style="font-family:arial,sans-serif;font-size:13px">The app gets started. However we always get a empty tracefile. </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">

Can you please give us suggestion which may resolve the issue ? </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Thanks. I will highly appreciate your response. </div>

<div style="font-family:arial,sans-serif;font-size:13px"></div></div></div><div class="gmail_extra"><div><div class="h5"><br></div></div></div></blockquote><div><br></div><div style>The doc says that the output of </div>
<div style><br></div><div><span style="background-color:rgb(248,248,248);color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:19px;white-space:nowrap">  adb logcat \*:S apitrace</span> </div>
<div><br></div><div style>might provide some clue.</div><div style><br></div><div style>Jose</div></div></div></div>