Dumpsys 介绍
Dumpsys用户系统诊断,它运行在设备上,并提供系统服务状态信息
命令格式: adb shell dumpsys [system serbices]
常用dumpsys命令:
1、包信息查询
子命令格式:adb shell dumpsys package [-h] [-f] [—checkin] [cmd]…
2、activity信息查询
子命令格式:adb shell dumpsys activity [-a] [-c]…
3、网络信息查询
网络连接 adb shell dumpsys connectivity
网络策略 adb shell dumpsys netpolicy
网络状态adb shell dumpsys netstats
网络管理adb shell dumpsys network_management
4、其他常用服务信息查询
内存 adb shell dumpsys meminfo
CPU adb shell dumpsys cpuinfo
帧率 adb shell dumpsys gfxinfo
显示 adb shell dumpsys display
电源 adb shell dumpsys power
电池状态 adb shell dumpsys batterystats
电池 adb shell dumpsys battery
闹钟 adb shell dumpsys alarm
位置 adb shell dumpsys location
XXX-MacBook-Pro:CPU chunyanzhang$ adb shell dumpsys meminfo Applications Memory Usage (in Kilobytes): Uptime: 50300049 Realtime: 276735636 Total PSS by process: 566,155K: com.XXX.XXXhdmap (pid 24133 / activities) 252,696K: system (pid 1364) 141,726K: com.zui.launcher (pid 2260 / activities) 120,825K: com.lenovo.menu_assistant (pid 23966) 118,156K: com.android.systemui (pid 1840) 118,023K: com.sohu.inputmethod.sogou (pid 4172) 107,170K: surfaceflinger (pid 847) 92,791K: com.XXX.ivi.setting (pid 24310) 82,115K: com.google.android.gms (pid 18481) 55,604K: com.zui.safecenter (pid 2742) 52,346K: com.google.android.gms.persistent (pid 2628) 45,980K: com.google.android.gms.unstable (pid 9581) 44,074K: [email protected]_64 (pid 742) 38,231K: com.zui.launchersdk (pid 3379) 36,110K: com.zui.bugtogo (pid 4047) 30,629K: com.zui.cloudservice (pid 23506) 29,946K: com.lenovo.ue.device (pid 2867) 22,618K: com.zui.calendar (pid 30343) 21,805K: com.lenovo.process.weathercenter (pid 3399) 20,713K: com.android.phone (pid 2141) 20,490K: com.zui.gallery (pid 24086) 19,165K: android.process.acore (pid 10581) 18,425K: com.zui.userexperience (pid 6159) 15,778K: com.lenovo.lsf.device (pid 5828) 15,106K: logd (pid 555) 14,950K: [email protected] (pid 738) 12,942K: com.zui.homesettings (pid 9110) 12,444K: com.zui.sdac:cns (pid 6108) 11,819K: com.zui.networkaclr (pid 2162) 11,398K: com.zui.xlog (pid 2715) 11,126K: com.baidu.map.location (pid 3131) 11,058K: com.zui.xlog:usage (pid 17474) 11,019K: [email protected] (pid 760) 10,975K: audioserver (pid 825) 10,624K: android.process.media (pid 19721) 10,022K: media.extractor (pid 981) 9,887K: com.zui.tassistent (pid 2777) 9,826K: [email protected] (pid 749) 9,745K: com.zui.bugtogo:remote (pid 7426) 9,686K: .qtidataservices (pid 2045) 9,685K: com.google.process.gservices (pid 9323) 9,318K: android.ext.services (pid 2210) 9,245K: com.qualcomm.qti.workloadclassifier (pid 2925) 8,854K: com.zui.weather (pid 14912) 8,160K: com.zui.wifip2p (pid 2896) 8,124K: com.android.providers.calendar (pid 9930) 7,406K: zygote (pid 652) 7,004K: [email protected] (pid 748) 6,752K: com.lenovo.family.mdmagent (pid 2798) 6,713K: com.zui.ota (pid 4504) 6,691K: webview_zygote (pid 2001) 6,386K: com.dolby.daxservice (pid 2748) 6,029K: mediaserver (pid 993) 5,972K: com.lenovo.levoice_agent (pid 3200) 5,906K: com.zui.sdac (pid 2685) 5,696K: com.lenovo.ue.device.daemon (pid 23219) 5,615K: wpa_supplicant (pid 1890) 5,386K: com.zui.cores (pid 2118) 5,358K: media.metrics (pid 990) 5,184K: media.swcodec (pid 1068) 4,989K: media.codec (pid 1040) 4,924K: netd (pid 650) 4,910K: .dataservices (pid 1965) 4,903K: com.qualcomm.qti.telephonyservice (pid 2076) 4,815K: init (pid 1) 4,779K: com.qualcomm.qti.services.secureui:sui_service (pid 2949) 4,665K: com.qualcomm.qcrilmsgtunnel (pid 2331) 4,662K: zygote64 (pid 651) 4,604K: com.dolby.dolbyvisionservice (pid 2096) 4,504K: com.qualcomm.qti.services.systemhelper:systemhelper_service (pid 2818) 4,454K: xtra-daemon (pid 1120) 4,441K: com.android.se (pid 2843) 4,272K: cameraserver (pid 969) 4,104K: com.android.smspush (pid 2976) 3,561K: drmserver (pid 974) 3,335K: [email protected] (pid 773) 3,230K: cnd (pid 1041) 3,183K: [email protected] (pid 754) 2,876K: media.hwcodec (pid 787) 2,812K: [email protected] (pid 756) 2,597K: adbd (pid 2729) 2,505K: vold (pid 589) 2,391K: keystore (pid 979) 2,345K: cnss_diag (pid 965) 2,280K: [email protected] (pid 772) 2,248K: lowi-server (pid 1119) 2,165K: ueventd (pid 540) 2,156K: chre (pid 1096) 2,081K: thermal-engine (pid 962) 2,064K: init (pid 538) 2,039K: statsd (pid 1000) 1,997K: [email protected] (pid 1127) 1,990K: installd (pid 977) 1,922K: storaged (pid 1001) 1,914K: top (pid 27051) 1,804K: adsprpcd (pid 1060) 1,701K: cnss-daemon (pid 1069) 1,594K: tloc_daemon (pid 1116) 1,580K: init (pid 539) 1,571K: imsdatadaemon (pid 1181) 1,569K: ims_rtp_daemon (pid 966) 1,543K: qseecomd (pid 573) 1,538K: hwservicemanager (pid 557) 1,493K: mediadrmserver (pid 980) 1,492K: perfservice (pid 994) 1,489K: [email protected] (pid 747) 1,442K: pm-service (pid 816) 1,432K: wificond (pid 1002) 1,396K: vendor.qti.hardware.display.allocator-service (pid 769) 1,388K: wifidisplayhalservice (pid 1048) 1,387K: update_engine (pid 1103) 1,386K: [email protected] (pid 572) 1,330K: [email protected] (pid 744) 1,313K: [email protected] (pid 1110) 1,297K: [email protected] (pid 746) 1,282K: apexd (pid 633) 1,238K: dpmQmiMgr (pid 1049) 1,233K: imsrcsd (pid 964) 1,225K: gpuservice (pid 837) 1,220K: hq_ftm (pid 808) 1,219K: [email protected] (pid 780) 1,199K: sensors.qti (pid 871) 1,195K: [email protected] (pid 740) 1,187K: vppservice (pid 789) 1,185K: [email protected] (pid 768) 1,177K: [email protected] (pid 745) 1,125K: incidentd (pid 976) 1,125K: wfdhdcphalservice (pid 1003) 1,121K: [email protected] (pid 741) 1,102K: loc_launcher (pid 1090) 1,100K: hvdcp_opti (pid 1665) 1,091K: gatekeeperd (pid 1097) 1,089K: [email protected] (pid 767) 1,076K: [email protected] (pid 776) 1,072K: [email protected] (pid 574) 1,040K: [email protected] (pid 786) 1,036K: [email protected] (pid 761) 1,035K: ssgtzd (pid 2515) 1,017K: [email protected] (pid 758) 1,005K: time_daemon (pid 645) 1,001K: pm-proxy (pid 958) 997K: pd-mapper (pid 810) 969K: [email protected] (pid 755) 961K: [email protected] (pid 606) 961K: [email protected] (pid 781) 952K: [email protected] (pid 764) 951K: ip6tables-restore (pid 6195) 949K: qvrservice (pid 1100) 946K: [email protected] (pid 778) 941K: dpmd (pid 1149) 940K: [email protected] (pid 777) 939K: [email protected] (pid 743) 939K: iptables-restore (pid 6190) 937K: [email protected] (pid 757) 928K: [email protected] (pid 607) 928K: [email protected] (pid 1128) 927K: [email protected] (pid 605) 925K: [email protected] (pid 759) 924K: [email protected] (pid 774) 924K: adsprpcd (pid 850) 917K: [email protected] (pid 752) 912K: [email protected] (pid 763) 910K: [email protected] (pid 751) 901K: [email protected] (pid 753) 876K: [email protected] (pid 739) 873K: servicemanager (pid 556) 872K: [email protected] (pid 770) 862K: rmt_storage (pid 851) 841K: tftp_server (pid 853) 833K: [email protected] (pid 604) 821K: wfdvndservice (pid 1065) 819K: imsqmidaemon (pid 963) 799K: lmkd (pid 846) 793K: mlid (pid 1080) 778K: msm_irqbalance (pid 1179) 774K: vndservicemanager (pid 558) 764K: adsprpcd (pid 1058) 757K: cdsprpcd (pid 1064) 725K: ashmemd (pid 817) 697K: ipacm-diag (pid 603) 635K: traced (pid 959) 634K: traced_probes (pid 960) 613K: qrtr-ns (pid 792) 595K: tombstoned (pid 1102) 577K: dpmd (pid 1109) 442K: ssgqmigd (pid 1078) 0K: dumpsys (pid 32689) Total PSS by OOM adjustment: 443,334K: Native 107,170K: surfaceflinger (pid 847) 44,074K: [email protected]_64 (pid 742) 15,106K: logd (pid 555) 14,950K: [email protected] (pid 738) 11,019K: [email protected] (pid 760) 10,975K: audioserver (pid 825) 10,022K: media.extractor (pid 981) 9,826K: [email protected] (pid 749) 7,406K: zygote (pid 652) 7,004K: [email protected] (pid 748) 6,691K: webview_zygote (pid 2001) 6,029K: mediaserver (pid 993) 5,615K: wpa_supplicant (pid 1890) 5,358K: media.metrics (pid 990) 5,184K: media.swcodec (pid 1068) 4,989K: media.codec (pid 1040) 4,924K: netd (pid 650) 4,815K: init (pid 1) 4,662K: zygote64 (pid 651) 4,454K: xtra-daemon (pid 1120) 4,272K: cameraserver (pid 969) 3,561K: drmserver (pid 974) 3,335K: [email protected] (pid 773) 3,230K: cnd (pid 1041) 3,183K: [email protected] (pid 754) 2,876K: media.hwcodec (pid 787) 2,812K: [email protected] (pid 756) 2,597K: adbd (pid 2729) 2,505K: vold (pid 589) 2,391K: keystore (pid 979) 2,345K: cnss_diag (pid 965) 2,280K: [email protected] (pid 772) 2,248K: lowi-server (pid 1119) 2,165K: ueventd (pid 540) 2,156K: chre (pid 1096) 2,081K: thermal-engine (pid 962) 2,064K: init (pid 538) 2,039K: statsd (pid 1000) 1,997K: [email protected] (pid 1127) 1,990K: installd (pid 977) 1,922K: storaged (pid 1001) 1,914K: top (pid 27051) 1,804K: adsprpcd (pid 1060) 1,701K: cnss-daemon (pid 1069) 1,594K: tloc_daemon (pid 1116) 1,580K: init (pid 539) 1,571K: imsdatadaemon (pid 1181) 1,569K: ims_rtp_daemon (pid 966) 1,543K: qseecomd (pid 573) 1,538K: hwservicemanager (pid 557) 1,493K: mediadrmserver (pid 980) 1,492K: perfservice (pid 994) 1,489K: [email protected] (pid 747) 1,442K: pm-service (pid 816) 1,432K: wificond (pid 1002) 1,396K: vendor.qti.hardware.display.allocator-service (pid 769) 1,388K: wifidisplayhalservice (pid 1048) 1,387K: update_engine (pid 1103) 1,386K: [email protected] (pid 572) 1,330K: [email protected] (pid 744) 1,313K: [email protected] (pid 1110) 1,297K: [email protected] (pid 746) 1,282K: apexd (pid 633) 1,238K: dpmQmiMgr (pid 1049) 1,233K: imsrcsd (pid 964) 1,225K: gpuservice (pid 837) 1,220K: hq_ftm (pid 808) 1,219K: [email protected] (pid 780) 1,199K: sensors.qti (pid 871) 1,195K: [email protected] (pid 740) 1,187K: vppservice (pid 789) 1,185K: [email protected] (pid 768) 1,177K: [email protected] (pid 745) 1,125K: incidentd (pid 976) 1,125K: wfdhdcphalservice (pid 1003) 1,121K: [email protected] (pid 741) 1,102K: loc_launcher (pid 1090) 1,100K: hvdcp_opti (pid 1665) 1,091K: gatekeeperd (pid 1097) 1,089K: [email protected] (pid 767) 1,076K: [email protected] (pid 776) 1,072K: [email protected] (pid 574) 1,040K: [email protected] (pid 786) 1,036K: [email protected] (pid 761) 1,035K: ssgtzd (pid 2515) 1,017K: [email protected] (pid 758) 1,005K: time_daemon (pid 645) 1,001K: pm-proxy (pid 958) 997K: pd-mapper (pid 810) 969K: [email protected] (pid 755) 961K: [email protected] (pid 606) 961K: [email protected] (pid 781) 952K: [email protected] (pid 764) 951K: ip6tables-restore (pid 6195) 949K: qvrservice (pid 1100) 946K: [email protected] (pid 778) 941K: dpmd (pid 1149) 940K: [email protected] (pid 777) 939K: [email protected] (pid 743) 939K: iptables-restore (pid 6190) 937K: [email protected] (pid 757) 928K: [email protected] (pid 607) 928K: [email protected] (pid 1128) 927K: [email protected] (pid 605) 925K: [email protected] (pid 759) 924K: [email protected] (pid 774) 924K: adsprpcd (pid 850) 917K: [email protected] (pid 752) 912K: [email protected] (pid 763) 910K: [email protected] (pid 751) 901K: [email protected] (pid 753) 876K: [email protected] (pid 739) 873K: servicemanager (pid 556) 872K: [email protected] (pid 770) 862K: rmt_storage (pid 851) 841K: tftp_server (pid 853) 833K: [email protected] (pid 604) 821K: wfdvndservice (pid 1065) 819K: imsqmidaemon (pid 963) 799K: lmkd (pid 846) 793K: mlid (pid 1080) 778K: msm_irqbalance (pid 1179) 774K: vndservicemanager (pid 558) 764K: adsprpcd (pid 1058) 757K: cdsprpcd (pid 1064) 725K: ashmemd (pid 817) 697K: ipacm-diag (pid 603) 635K: traced (pid 959) 634K: traced_probes (pid 960) 613K: qrtr-ns (pid 792) 595K: tombstoned (pid 1102) 577K: dpmd (pid 1109) 442K: ssgqmigd (pid 1078) 0K: dumpsys (pid 32689) 252,696K: System 252,696K: system (pid 1364) 337,185K: Persistent 118,156K: com.android.systemui (pid 1840) 55,604K: com.zui.safecenter (pid 2742) 29,946K: com.lenovo.ue.device (pid 2867) 20,713K: com.android.phone (pid 2141) 11,819K: com.zui.networkaclr (pid 2162) 11,398K: com.zui.xlog (pid 2715) 9,887K: com.zui.tassistent (pid 2777) 9,686K: .qtidataservices (pid 2045) 9,245K: com.qualcomm.qti.workloadclassifier (pid 2925) 8,160K: com.zui.wifip2p (pid 2896) 6,752K: com.lenovo.family.mdmagent (pid 2798) 6,386K: com.dolby.daxservice (pid 2748) 5,906K: com.zui.sdac (pid 2685) 5,386K: com.zui.cores (pid 2118) 4,910K: .dataservices (pid 1965) 4,903K: com.qualcomm.qti.telephonyservice (pid 2076) 4,779K: com.qualcomm.qti.services.secureui:sui_service (pid 2949) 4,604K: com.dolby.dolbyvisionservice (pid 2096) 4,504K: com.qualcomm.qti.services.systemhelper:systemhelper_service (pid 2818) 4,441K: com.android.se (pid 2843) 658,946K: Foreground 566,155K: com.xxx.xxxhdmap (pid 24133 / activities) 92,791K: com.xxx.ivi.setting (pid 24310) 410,118K: Visible 141,726K: com.zui.launcher (pid 2260 / activities) 120,825K: com.lenovo.menu_assistant (pid 23966) 52,346K: com.google.android.gms.persistent (pid 2628) 38,231K: com.zui.launchersdk (pid 3379) 21,805K: com.lenovo.process.weathercenter (pid 3399) 11,126K: com.baidu.map.location (pid 3131) 9,318K: android.ext.services (pid 2210) 5,972K: com.lenovo.levoice_agent (pid 3200) 4,665K: com.qualcomm.qcrilmsgtunnel (pid 2331) 4,104K: com.android.smspush (pid 2976) 126,877K: Perceptible 118,023K: com.sohu.inputmethod.sogou (pid 4172) 8,854K: com.zui.weather (pid 14912) 12,444K: A Services 12,444K: com.zui.sdac:cns (pid 6108) 93,346K: B Services 36,110K: com.zui.bugtogo (pid 4047) 18,425K: com.zui.userexperience (pid 6159) 15,778K: com.lenovo.lsf.device (pid 5828) 10,624K: android.process.media (pid 19721) 6,713K: com.zui.ota (pid 4504) 5,696K: com.lenovo.ue.device.daemon (pid 23219) 272,551K: Cached 82,115K: com.google.android.gms (pid 18481) 45,980K: com.google.android.gms.unstable (pid 9581) 30,629K: com.zui.cloudservice (pid 23506) 22,618K: com.zui.calendar (pid 30343) 20,490K: com.zui.gallery (pid 24086) 19,165K: android.process.acore (pid 10581) 12,942K: com.zui.homesettings (pid 9110) 11,058K: com.zui.xlog:usage (pid 17474) 9,745K: com.zui.bugtogo:remote (pid 7426) 9,685K: com.google.process.gservices (pid 9323) 8,124K: com.android.providers.calendar (pid 9930) Total PSS by category: 662,822K: Native 259,342K: Dalvik 232,246K: .dex mmap 193,644K: EGL mtrack 185,843K: .apk mmap 162,432K: Gfx dev 123,277K: .so mmap 98,634K: .art mmap 76,992K: GL mtrack 64,892K: Unknown 44,029K: .jar mmap 34,665K: Dalvik Other 28,071K: .oat mmap 26,228K: Ashmem 23,400K: Other mmap 5,625K: .ttf mmap 3,247K: Stack 3,196K: Other dev 4K: Cursor 0K: Other mtrack Total RAM: 5,747,456K (status moderate) Free RAM: 2,847,299K ( 272,551K cached pss + 2,492,116K cached kernel + 82,632K free) Used RAM: 2,810,362K (2,334,946K used pss + 475,416K kernel) Lost RAM: 374,711K ZRAM: 93,992K physical used for 386,584K in swap (3,145,724K total swap) Tuning: 512 (large 512), oom 322,560K, restore limit 107,520K (high-end-gfx) XXX-MacBook-Pro:CPU chunyanzhang$
标签:Dumpsy,service,pid,hardware,命令,详解,android,com,qti From: https://www.cnblogs.com/xiaoyanguniang/p/16984370.html