2026/3/28 1:47:53
网站建设
项目流程
wordpress 预览 word,百中搜优化,中山谷歌推广,网站域名过期了怎么办ANR trace文件默认在 /data/anr 下面。如果没有 root 权限#xff0c;那你能看#xff0c;但是没有办法 adb pull 或者 cp 到其他位置上# 生成文本格式报告#xff08;不推荐#xff09;
adb bugreport bugreport.txt# 生成ZIP格式报告#xff08;推荐#xff09;
a…ANR trace文件默认在 /data/anr 下面。如果没有 root 权限那你能看但是没有办法 adb pull 或者 cp 到其他位置上# 生成文本格式报告不推荐 adb bugreport bugreport.txt # 生成ZIP格式报告推荐 adb bugreport bugreport.zip # 输出在控制台上 adb shell bugreport那么就有以上几种方式。生成ZIP文件adb bugreport bugreport.zip这样会自动生成一个ZIP文件并且下载到当前CMD的当前目录下。bugreport.zip\FS\data\anr\直接查看有些设备无法下载zip或者zip异常那么就可以直接运行adb shell bugreport这样记得把缓冲区搞得长一点。或者直接 输出到文件。当然这样一下内容会很多可以搜索 main 带引号来快速定位bugreport 用法扩展内存分析工具通过dumpsys meminfo可获取进程级内存使用详情# 查看特定应用内存 adb shell dumpsys meminfo com.android.launcher # 输出示例 MEMINFO in pid 1325 [com.android.launcher] PSS: 68696KB # PSS包含共享库比例CPU与进程监控# 获取CPU使用率 adb shell dumpsys cpuinfo # 实时进程监控 adb shell top -n 1 # 查看进程OOM优先级 adb shell dumpsys activity oom