获取堆栈信息

dumpsys简单介绍:该命令用户打印出当前系统信息,默认打印出所有service信息,可以在命令后面加入activity参数,只打印出activity相关的信息。

可跟参数有以下这些:

SurfaceFlinger, accessibility, account,activity, alarm, appwidget, audio, backup, battery, batteryinfo,bluetooth, bluetooth_a2dp, clipboard, connectivity, content,cpuinfo, device_policy, devicestoragemonitor, diskstats, dropbox,entropy, hardware, hdmi, input_method, iphonesubinfo, isms,location, media.audio_flinger, media.audio_policy, media.camera,media.player, meminfo, mount, netstat, network_management,notification, package, permission, phone, power, search, sensor,simphonebook, statusbar, telephony.registry, throttle, uimode,usagestats, vibrator, wallpaper, wifi, window

 

        在CMD下面输入以下命令:      

adb shell dumpsys activity

 

adb shell dumpsysactivity>activity.txt

“>activity.txt”是使用管道将信息打印的activity.txt中,再使用文本编辑器打开帮助我们更好的搜索和分析。

你可能感兴趣的:(android)