用adb shell查看Android进程占用率

在windows下打开cmd

在cmd输入“adb shell”就可以进入Android 的Shell状态:

命令:

ps 命令,查看进程。

例子:ps -aux grep com

说明:列举出名字进程名以com开头的进程。

 

 

top命令是看占用率的。

例子:top -d 1 -s cpu -m 30

说明:-d 1 更新时间为1秒,-s cpu 用CPU来排序  -m 30 最多列举出30个进程

详细说明:top -h进入说明模式

$ top -h  
top -h  
Usage: top [-m max_procs] [-n iterations] [-d delay] [-s sort_column] [-t] [-h]  
  -m num  Maximum number of processes to display. // 最多显示多少个进程  
  -n num  Updates to show before exiting. // 刷新次数  
  -d num  Seconds to wait between updates. // 刷新间隔时间(默认5秒)  
  -s col  Column to sort by  // 按哪列排序  
  -t      Show threads instead of processes. // 显示线程信息而不是进程  
  -h      Display this help screen. // 显示帮助文档  
$ top -n 1  
top -n 1  


 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值