1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 6d24f2138b
Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56)
3 years ago
..
stressfs Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
README.md Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
bootanalyze.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
bootanalyze.sh Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
bugreport_anayze.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
config.yaml Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago

README.md

bootanalyze

The bootanalyze tool helps to profile boot timing.

[TOC]

Preliminaries

  • Need to access "su" on the Device Under Test, e.g. a userdebug build.
  • This only works on Linux with Python 2.7, PyYAML and pybootchartgui.
sudo pip install pyyaml
sudo apt-get install pybootchartgui

Examples

  • bootanalyze.sh provides an example to analyze boot-times and bootcharts.
ANDROID_BUILD_TOP="$PWD" \
CONFIG_YMAL="$ANDROID_BUILD_TOP/system/extras/boottime_tools/bootanalyze/config.yaml" \
    LOOPS=3 \
    RESULTS_DIR="$ANDROID_BUILD_TOP/bootAnalyzeResults" \
    $PWD/system/extras/boottime_tools/bootanalyze/bootanalyze.sh

config.yaml

Per specific product modify config.yaml file to include events you are looking for. Config should look like:

stop_event: <logcat log message which will terminate log collection after reboot>
events:
  event1_name: <pattern that matches log message>
  event2_.....

On some devise clock is showing incorrect time for first couple of seconds after boot. To ensure correct adjustment of time, one has to include event in config that will be present in dmesg log after clock correction.