Android之dumpsys
来源:互联网 发布:red hat linux 9 编辑:程序博客网 时间:2024/06/07 03:17
dumpsys一个很牛逼的调试工具,功能都有待挖掘~
dumpsys的源码位于frameworks/native/cmds/dumpsys 目录下,使用" dumpsys -l "命令列出dumpsys工具支持的option list:
shell@mx3:/ $ dumpsys -l
dumpsys -l
Currently running services:
Exynos.HWCService
SurfaceFlinger
access_control
accessibility
account
activity
alarm
android.security.keys
appops
appwidget
audio
backup
battery
batterypropreg
batterystats
bluetooth_manager
clipboard
com.broadcom.nfc.Fact
com.vzw.nfc.AidFilter
commontime_management
connectivity
consumer_ir
content
country_detector
cpuinfo
dbinfo
device_policy
devicestoragemonitor
diskstats
display
dreams
drm.drmManager
dropbox
entropy
flyme_theme
gfxinfo
hardware
input
input_method
iphonesubinfo
isms
location
lock_settings
media.audio_flinger
media.audio_policy
media.camera
media.player
media_router
meizu.camera
meizu.syncatservice
meminfo
mount
netpolicy
netstats
network_management
nfc
notification
package
permission
phone
power
pppoe
print
procstats
samba_client
samba_server
samplingprofiler
scheduling_policy
search
sensorservice
serial
servicediscovery
simphonebook
sip
statusbar
telephony.registry
textservices
uimode
updatelock
usagestats
usb
user
vibrator
wallpaper
wifi
wifip2p
window
shell@mx3:/ $
每一个option都是一个sub command,如dumpsys window:
shell@mx3:/ $ dumpsys window -h
dumpsys window -h
Window manager dump options:
[-a] [-h] [cmd] ...
cmd may be one of:
l[astanr]: last ANR information
p[policy]: policy state
a[animator]: animator state
s[essions]: active sessions
d[isplays]: active display contents
t[okens]: token list
w[indows]: window list
cmd may also be a NAME to dump windows. NAME may
be a partial substring in a window name, a
Window hex object identifier, or
"all" for all windows, or
"visible" for the visible windows.
-a: include all available server state.
shell@mx3:/ $
使用sub command中的option:
shell@mx3:/ $ dumpsys window l
dumpsys window l
WINDOW MANAGER LAST ANR (dumpsys window lastanr)
<no ANR has occurred since boot>
shell@mx3:/ $
查看last ANR information~
详细挖掘这些工具能极大的提高调试的效率~
- Android之dumpsys
- android性能测试工具之dumpsys
- android性能测试工具之dumpsys
- android性能测试工具之dumpsys
- android性能测试工具之dumpsys
- android性能测试工具之dumpsys
- android自动化测试之dumpsys性能测试
- android性能测试调试工具之dumpsys
- android性能测试工具之dumpsys
- 【android开发工具】之adb shell dumpsys
- android性能测试工具之dumpsys
- android性能测试工具之dumpsys
- Android调试系列之dumpsys命令
- android开发笔记之adb shell dumpsys
- android dumpsys
- android dumpsys
- Android dumpsys
- android dumpsys
- 分布式系统的事务处理
- 第七章 复用代码 && 第八章 多态
- 你所不知道的几个经济学真相
- UIScrollView的属性总结
- XX和OO(南阳oj1159)
- Android之dumpsys
- MySQL建表的几个注意事项
- replica nfl jerseys
- 小白学opengl之显示回调函数与reshape回调函数
- amfphp资料
- 贪心算法的思想
- smartform实现分页
- vim中的命令
- Hibernate2查询视图时,数据库返回多条纪录,封装后的对象却都是一样的问题