Android 内存分析

1.使用adb命令查看app内存使用情况

adb shell dumpsys meminfo <package_name>

adb shell top | grep <package_name>

如果是windows环境,没有按照cygwin,无法使用grep命令,find或findstr替代

adb shell top | find /i "com.game.test"

其中,PSS - Proportional Set Size 实际使用的物理内存(比例分配共享库占用的内存),所以Total PSS为app实际使用内存。

2.使用DDMS

3.查看Log输出

其他:后台杀掉进程

adb shell,su -》进入root,kill processId

参考

 

posted @ 2015-11-20 16:00  勇敢的心❤️  阅读(271)  评论(0编辑  收藏  举报