dumpsys

VERSION: 0.1

HistoryCommentsDate
0.1初稿2016/04/13

摘要

dumpsys是andord的一个重要的工具。他能够dump系统服务的状态信息。

如何显示dump功能参数

dumpsys能够显示足够多的信息,但是如何知道dump支持那些命令,重点来了

dumpsys | grep "DUMP OF SERVICE

output:
DUMP OF SERVICE SurfaceFlinger:
DUMP OF SERVICE accessibility:
DUMP OF SERVICE account:
DUMP OF SERVICE activity:
DUMP OF SERVICE alarm:
DUMP OF SERVICE appwidget:
DUMP OF SERVICE audio:
DUMP OF SERVICE backup:
DUMP OF SERVICE battery:
DUMP OF SERVICE batteryinfo:
DUMP OF SERVICE clipboard:
DUMP OF SERVICE connectivity:
DUMP OF SERVICE content:
DUMP OF SERVICE cpuinfo:
DUMP OF SERVICE device_policy:
DUMP OF SERVICE devicestoragemonitor:
DUMP OF SERVICE diskstats:

如何显示参数的详细说明

上面可以显示有哪些参数可以供访问,那么问题来了,如何知道这些参数可以带那些参数显示更多的信息?

adb shell dumpsys meminfo -h

meminfo dump options: [-a] [-d] [-c] [–oom] [process]
-a: include all available information for each process.
-d: include dalvik details when dumping process details.
-c: dump in a compact machine-parseable representation.
–oom: only show processes organized by oom adj.
–local: only collect details locally, don’t call process.
–package: interpret process arg as package, dumping all
processes that have loaded that package.
If [process] is specified it can be the name or
pid of a specific process to dump.

结局

是不是很有用。。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值