What good tools are available in Android to check code performance, such as memory leaks, or tools to analyze program performance?

  android, question

Recently, I encountered the situation that the main thread of Android program will get stuck and quit. I don’t know how to analyze it, suggesting that the main thread has taken on too many tasks. I want to know how to solve this problem. Ask for help

Foolish typeMAT (Memory Analyzer Tool), more sillyleakcanary