1、执行: adb shell dumpsys meminfo $packagename
2、获取到输出内容如:
此步骤可编写代码(或编写Eclipse插件)来获取到输出内容,进而获取到对应的内存等信息:
a、做到自动采样App在执行过程中的内存等信息
b、动态监控App的内存等信息
各项含义参考:http://blog.csdn.net/xyz_lmn/article/details/7001892
注:其他adb命令也类似,可以相应采样或监控相关指标
1、执行: adb shell dumpsys meminfo $packagename
2、获取到输出内容如:
此步骤可编写代码(或编写Eclipse插件)来获取到输出内容,进而获取到对应的内存等信息:
a、做到自动采样App在执行过程中的内存等信息
b、动态监控App的内存等信息
各项含义参考:http://blog.csdn.net/xyz_lmn/article/details/7001892
注:其他adb命令也类似,可以相应采样或监控相关指标