adb 查看某个app 的内存使用情况

1.查看总内存使用

adb shell dumpsys meminfo | findstr com.xxx.xxx

2.查看GPU内存使用

adb shell dumpsys gfxinfo com.xxx.xxx

3.查看CPU使用率

adb shell dumpsys cpuinfo | findstr com.xxx.xxx

通过内存情况就可以判断是否有内存泄漏

你可能感兴趣的:(adb,adb)