How to make Java Thread Dump in Android?

后端 未结 6 1797
面向向阳花
面向向阳花 2020-12-29 11:00

I just want to get all dumps from java virtual machine threads, to look at what the threads lock and what threads waiting to unlock some resources. Something like is describ

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-29 11:13

    Just debug your app on your phone in Android Studio; then in the "Debug view" Alt+5 just press the "Camera" button at the bottom left corner, to obtain a dump of all stacktraces, including locks they are holding.

提交回复
热议问题