Android: Where is the .trace file when Profiling with Traceview and Genymotion?
<p>I'm reading this article here about running traceview on your android app: <a href="https://developer.android.com/studio/profile/traceview.html" rel="noreferrer">https://developer.android.com/studio/profile/traceview.html</a> I assume the emulator they are talking about is the android emulator, not the Genymotion emulator which is the one I'm using.</p>

<p>It says to pull the trace file out of the emulator onto your host machine, you can just run the following commands:</p>

<pre><code>adb pull /sdcard/startup.trace /tmp
</code></pre>

<p>I ran it on my Genymotion emulator and the file was not found. I then used the Android Device Monitor to look inside the device for the file but there was no file called startup.trace saved in that location.</p>

<p>I did this in my code:</p>

<pre><code>public class MyApplication extends MultiDexApplication {

    public void onCreate() {
        super.onCreate();
        Debug.startMethodTracing("startup"); 
    }
  }
</code></pre>

<p>Then I stoppedTracing in my activity onResume method to measure the startup time of my app:</p>

<pre><code>@Override
protected void onResume() {
    super.onResume();
    Debug.stopMethodTracing();
}
</code></pre>

<p>I want the traceview to measure my startup time but don't know where the file is saved on my Genymotion emulator. Can anyone assist me with where the file is saved?</p>