Directory of Debug.startMethodTracing() trace file

2.6k Views Asked by At

I'm trying to execute an app and calculate the startup time using the Debug.startMethodTracing() but I can't find the trace file. I've already added the <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>. The problem is that I don't have an sd card so I don't know where android studio saves my file.

Any advice is much appreciated.

Thanks in advance, Equinox

4

There are 4 best solutions below

0
Equinox On BEST ANSWER

I solved my problem. In the case your smartphone doesn't have an sdcard you should go to /storage/emulated/legacy (or similar path). There it is your trace file.

0
Denny Weinberg On

Mine was here: /storage/emulated/0/Android/data/[YOUR_PACKAGE]/files/dmtrace.trace

cd /storage/emulated/0
find -name *.trace
2
tomrozb On

In my case the trace file has been saved to location

/sdcard/Android/data/you.app.package.name/files/name.trace
0
Leonid Ivankin On

In my case storage/emulated/0/android/data/your_package/files/... .strace