adb shell ps命令
2015-01-08 10:05
1841 查看
adb shell ps 可用来查看内存
adb shell ps | find "launcher"
USER PID PPID VSIZE RSS WCHAN PC NAME
app_47 1274 1071 121628 30352 ffffffff afe0dc24 S com.motorola.launcher
VSIZE 是虚存
RSS是物理内存。
Android中“PS”工具提供的仅仅只是显示VSIZE和RSS而已。这些数字并不是非常有用的显示实际的成本在内存中某一特定的应用程序或精灵。smem是分析内存使用量得工具。具体参考:
http://www.cofftech.com/thread-514-1-1.html
adb shell procrank也可以读取更多信息
http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android/2299813#2299813
PID Vss Rss Pss Uss cmdline
481 31536K 30936K 14337K 9956K system_server
475 26128K 26128K 10046K 5992K zygote
526 25108K 25108K 9225K 5384K android.process.acore
523 22388K 22388K 7166K 3432K com.android.phone
574 21632K 21632K 6109K 2468K com.android.settings
521 20816K 20816K 6050K 2776K jp.co.omronsoft.openwnn
474 3304K 3304K 1097K 624K /system/bin/mediaserver
RSS - Resident Set Size 实际使用物理内存(包含共享库占用的内存)
PSS - Proportional Set Size 实际使用的物理内存(比例分配共享库占用的内存)
USS - Unique Set Size 进程独自占用的物理内存(不包含共享库占用的内存)
一般来说内存占用大小有如下规律:VSS >= RSS >= PSS >= USS
adb shell ps | find "launcher"
USER PID PPID VSIZE RSS WCHAN PC NAME
app_47 1274 1071 121628 30352 ffffffff afe0dc24 S com.motorola.launcher
VSIZE 是虚存
RSS是物理内存。
Android中“PS”工具提供的仅仅只是显示VSIZE和RSS而已。这些数字并不是非常有用的显示实际的成本在内存中某一特定的应用程序或精灵。smem是分析内存使用量得工具。具体参考:
http://www.cofftech.com/thread-514-1-1.html
adb shell procrank也可以读取更多信息
http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android/2299813#2299813
PID Vss Rss Pss Uss cmdline
481 31536K 30936K 14337K 9956K system_server
475 26128K 26128K 10046K 5992K zygote
526 25108K 25108K 9225K 5384K android.process.acore
523 22388K 22388K 7166K 3432K com.android.phone
574 21632K 21632K 6109K 2468K com.android.settings
521 20816K 20816K 6050K 2776K jp.co.omronsoft.openwnn
474 3304K 3304K 1097K 624K /system/bin/mediaserver
Terms
VSS - Virtual Set Size 虚拟耗用内存(包含共享库占用的内存)RSS - Resident Set Size 实际使用物理内存(包含共享库占用的内存)
PSS - Proportional Set Size 实际使用的物理内存(比例分配共享库占用的内存)
USS - Unique Set Size 进程独自占用的物理内存(不包含共享库占用的内存)
一般来说内存占用大小有如下规律:VSS >= RSS >= PSS >= USS
相关文章推荐
- eclipse 用adb shell ps 命令检测某个应用的资源占用
- adb shell 命令
- android 命令(adb shell)进入指定模拟器或设备
- android adb shell 命令大全
- dos命令行输入adb shell命令为什么报错 没有这个外部命令
- adb shell input 命令
- adb shell 命令
- adb shell 命令详解
- adb shell 命令详解
- Android系统在超级终端下必会的命令大全(adb shell命令大全)
- adb shell dumpsys 命令
- dos命令行输入adb shell命令为什么报错
- android adb shell am一些命令的用法
- adb shell 命令
- adb shell 命令查看android 应用程序 创建的 sqlite 数据库
- Android笔记:Android adb shell 命令
- adb shell 命令
- adb shell dumpsys 命令 查看内存
- Android系统在超级终端下必会的命令大全(adb shell命令大全)
- adb shell 命令详解