VERSION: 0.1
History | Comments | Date |
---|---|---|
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.
结局
是不是很有用。。