Memory Leak mobile terminal

adb shell command

      Use adb shell dumpsys meminfo [PackageName], you can print out the application package name specified memory information.

 

  This command can be visually observed Activity leakage is usually common way analysis and comparison. In addition to using the command outside, Android Studio also provides the following functions, and use the command is the same effect.

 

These are the time I was doing a memory leak location analysis tools and methods will be used, usually combined with the use of multiple complementary tool to analyze problems can improve our efficiency and effectiveness ultimately achieved.

 

Guess you like

Origin www.cnblogs.com/yuany66/p/11243360.html