On Android Studio 3.0 Canary 3 if I remember correctly advanced profiling worked without problems, once it was enabled in the run configuration. However after upgrading to AS 3 Canary 8 even if I enable advanced profiling, clean, rebuild and deploy to a Google Pixel running Android 7.1.2 the Android Profiler keeps telling me, that "Advanced profiling is unavailable for the selected process".
In the run configuration it also says:
Enable advanced profiling (required for API level < 26 only)
so I raised my compile SDK to 26 - but still no luck. The application is a multi-dex application in case that is relevant.
Any suggestions as to what I am missing or whether this is a known issue in Canary 8 would be highly appreciated.
Note: The documentation states that enabling will slow down my build speed, but it doesn't seem to have any impact on my build speed, which makes me wonder if the setting is ignored.
To open the Profiler window, choose View > Tool Windows > Profiler or click Profile in the toolbar. If prompted by the Select Deployment Target dialog, select the device on which to profile your app.
From the development emulator or device, start the app. In Android Studio, launch the profiler by selecting View > Tool Windows > Profiler. button in the profiler to see the dropdown menu. Select your device, then select the application's entry under Other profileable processes.
DDMS provides port forwarding, screen capturing, memory mapping, logcat, calls, SMS etc.
I finally got it to work by doing the following:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With