美文网首页
adb shell top指令

adb shell top指令

作者: ModestStorm | 来源:发表于2019-04-10 10:51 被阅读0次
  • 排除0%的进程信息: adb shell top | grep -v '0 % S'

  • 只打印一次按cpu排序的Top 10的进程信息: adb shell top -m 10 -s cpu -n 1

  • 指定进程的cpu,内存等消耗,并设置刷新间隔: adb shell top -d 1 | grep [package_name]

  • 用PS软件形象地处理进程的身份标识信息: adb shell ps -p -t -P -x -c [PID]

  • proc下的cpu信息: cat /proc/[pid]/stat

  • 手机root下杀死进程: adb shell kill [pid]

  • 手机没有root杀死进程: adb shell am force-stop [package_name]

相关文章

网友评论

      本文标题:adb shell top指令

      本文链接:https://www.haomeiwen.com/subject/wmogiqtx.html