高通平台启动时间查看

前言

只是简单写了个脚本抓取高通开机从 lk 到安卓可用这段时间各大模块主要占用时间
具体分析可参考文档:

【非常好】kba-160919232945_3_how_to_debug_boot_time_performance_issue.pdf

脚本

:::::::::::::::::::::::::::::::::::::::::::::::::
:: 脚本作用:用于安卓平台 log,分析启动问题 
:::::::::::::::::::::::::::::::::::::::::::::::::
adb reboot
adb wait-for-device
adb root
adb wait-for-device

adb shell dmesg > dmesg.txt
adb shell "dmesg "| findstr "KPI" > boottime.txt

ping -n 90 127.0.0.1>nul

adb logcat -b events -d > logcat_events.txt
adb logcat -v time thread -d > logcat.txt
adb shell "logcat -b events -m 1000 "| findstr "boot_progress" >> boottime.txt

猜你喜欢

转载自blog.csdn.net/wangjun7121/article/details/88234482