The Androidstudio comes with a CPU and memory detection tool to draw a change chart, which shows the memory and CPU curves visually and clearly.
Mobile phone connection to the computer, select the phone to debug, select the application process to detect, memory is the monitor, CPU is CPU monitoring, network traffic monitoring, the GPU for fluency test.
GPU Graph: The vertical axis represents the time each frame is drawn, and the horizontal axis is the run time.
Memory test, focus on two points:
1) After exiting a page, does the memory fall back. If not fall back in time, it is not necessarily the problem, there may be no automatic GC program, it is generally necessary to manually GC, if the manual GC, still cannot come down, at this time can be determined that there is a problem.
2) After an operation, the memory growth is too fast, there may be risks, at this time can be repeated operation to confirm.
Memory Test--android Studio comes with memory detection feature