Is there a way to monitor threads in AndroidStudio?

前端 未结 5 579
栀梦
栀梦 2021-01-11 20:24

I have an Android Java app that I am creating in AndroidStudio and running it on a Samsung Tablet (not using a virtual device at all). I have three threads and I believe th

5条回答
  •  被撕碎了的回忆
    2021-01-11 20:48

    Android Monitor tools were replaced with Android Profiler, in Android Studio 3.0:

    Android Profiler - Android Studio 3.0 includes a brand new suite of tools to help debug performance problems in your app. We completely rewrote the previous set of Android Monitor tools, and replaced them with the Android Profiler. Once you deploy your app to a running device or emulator, click on the Android Profiler tab and you will now have access to a real-time & unified view of the CPU, Memory, & Network activity for your app. ...

    To monitor threads, use CPU Profiler in Android Profiler.

    1. Click View > Tool Windows > Android Profiler (you can also click Android Profiler in the toolbar).
    2. Select the device and app process you want to profile from the Android Profiler toolbar. If you've connected a device over USB but don't see it listed, ensure that you have enabled USB debugging.
    3. Click anywhere in the CPU timeline to open the CPU Profiler.

提交回复
热议问题