adb shell ps命令
来源:互联网 发布:淘宝qq号买卖 编辑:程序博客网 时间:2024/05/22 14:21
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
Terms
- VSS - Virtual Set Size 虚拟耗用内存(包含共享库占用的内存)
- RSS - Resident Set Size 实际使用物理内存(包含共享库占用的内存)
- PSS - Proportional Set Size 实际使用的物理内存(比例分配共享库占用的内存)
- USS - Unique Set Size 进程独自占用的物理内存(不包含共享库占用的内存)
一般来说内存占用大小有如下规律:VSS >= RSS >= PSS >= USS
- adb shell ps命令
- adb shell ps
- android oreo 中adb shell中的ps命令需要加参数ps -A
- adb命令之adb shell
- 【adb】adb shell 命令详解
- eclipse 用adb shell ps 命令检测某个应用的资源占用
- adb shell 命令
- Android adb shell 命令
- Android adb shell 命令
- Android adb shell 命令
- Android adb shell 命令
- Android adb shell 命令
- adb shell 命令
- adb shell命令
- adb shell dumpsys 命令
- adb shell 命令
- adb shell 命令
- adb shell 命令
- 函数重载——求中间值
- 文本框input
- 母函数入门级公式
- javaMail自动发邮件,可以带附件
- Java 8那些被冷落的新特性
- adb shell ps命令
- 春运火车退票集中涌现 1月2月初成捡漏高峰期
- [svn] 制作补丁的经验
- Android服务开发经验——优雅地活着
- 理解多线程并发
- 即时通讯技术 好友列表业务逻辑详解
- sql语句执行顺序
- 1+2+3+..+n 特殊累加
- Mysql中INSERT INTO SELECT的使用