Android Studio has great performance profiling tools; after all, it provides the closest metal-to-metal interface with your mobile Android device. However, it is not as simple to use as the DevTools and therefore comes a close third in comparison to other profiling tools. We will use one of the sample Android projects we worked with. Open up Android Studio and either of the java_arcore_hello_ar or android (TensorFlow example) sample projects, and perform the following steps:
- Connect your device and build the app to your device. Wait for the app to start running on the device.
- From the menu, select View | Tool Windows | Android Profiler. This will open a profiling tool window, as shown in the following screenshot: