The location where android trace files are stored on Nexus 5X with Android 7.0 is

1
/sdcard/Android/data/com.domain.myapp/files/filename.trace

After using the os.Debug class to generate trace files for an app

1
2
Debug.startMethodTracing("mytracefile");
Debug.stopMethodTracing();

the file can be pulled from the stored location like

1
adb pull /sdcard/Android/data/com.domain.myapp/files/mytracefile.trace