What is the correct command to get a trace of an application on android?  Below is a command I put into the adb shell.  It runs the application, but I didn't find a trace file in /data.  I have egltrace.so in /data on the device.  The device is also rooted.<div>
<br></div><div><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"><br class="Apple-interchange-newline">LD_PRELOAD=/data/egltrace.so am start -n com.rovio.angrybirds/com.</span><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">rovio.ka3d.App</span></div>
<div><br></div><div>The readme mentioned that the method for linux should work, and in the Linux section there's this:</div><div><pre style="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">LD_PRELOAD=/path/to/apitrace/wrappers/glxtrace.so /path/to/application</code></pre>
<div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">I'm probably doing something wrong here... am I supposed to use glxtrace.so or egltrace.so?</span></div>
</div><div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">If someone has used apitrace on android and can give an example for an actual app that would be great.  Thanks.</span></div>
<div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">Anthony</span></div>