summaryrefslogtreecommitdiff
path: root/android/scripts/boottime2.sh
AgeCommit message (Collapse)Author
2017-05-13boottime2.sh: ignore case for the grep commandYongqin Liu
"Starting service 'logd'" changed to "starting service 'logd'" in O preview build, so we specify -i for the grep command to search with ignoring case Change-Id: I3bc5d49d219e0646dea7be33f10d7e2d7c65caa8 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2017-03-17boottime2: remove the measurement for a failed test caseYongqin Liu
we don't need the -1 measurement for a failed test, so remove the measurement and result report for the failed test cases. Also update the check of bootanim exit message for guarding, check there is only one line of following message outputed into dmesg init: Service 'bootanim'.* exited with status Change-Id: Ifdc57055cb3034b28ad02d862d0814937cb844fe Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2017-02-27android boottime2: add ANDROID_UI_SHOWN.Ivaylo Asenov
Change-Id: I10cc8b9f2aa2de15dea933b0657d86f21fad679a Signed-off-by: Ivaylo Asenov <ivaylo.asenov@linaro.org>
2017-02-18android boottime2: fix problem on the boot time caluationYongqin Liu
no need to divide the ANDROID_BOOT_TIME and SURFACEFLINGER_BOOT_TIME by 1000 now, since their unit is seconds Change-Id: Iee13fcbd2ec5b495c1f2b5731fa282f7bf8258e8 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2017-02-17android boottime2: update on boottime measurementsYongqin Liu
change ANDROID_BOOT_TIME to include 2 parts: the time from init started to the time surfaceflinger started, and the time from surfaceflinger started to the time boot finished also changed some variable names so that the script is easier to read Change-Id: I80168df5e18fd8a161f99f4d86c91344f4d5e522 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2017-02-16android boottime2: change on INIT_TO_SURFACEFLINGER_START_TIMEYongqin Liu
change to not include INIT_TO_SURFACEFLINGER_START_TIME in TOTAL_BOOT_TIME, only output it as a separate measurement Change-Id: I7704b95d419fb9e9e8186fb7cca4b5b31c406037 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2017-02-15android boottime2: collect time from init start to surfaceflinger startYongqin Liu
CONSOLE_SECONDS is the time from kernel start to init started, and the TIME_VALUE is reported by surfaceflinger service which is the time from surfaceflinger started to UI booted up. There is still the time from point init started to the point service surfaceflinger started point not collected. This change is to collect that time, and add it into the total time. Change-Id: I4dbd8a3ca4d2afb536b65cc9bc245ce30dc06b99 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2017-02-14android boottime2: add description about the scriptYongqin Liu
especial about what boottime information we measure, and how we get that boottime measurement Change-Id: Ia4096e258e196232ad6aecd4c14041c38eeede3d Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2016-12-22android boottime2: add check for boot timeout problemYongqin Liu
report error when there is boot timeout problem in logcat Change-Id: Ic5edecfa75f2bf04b921b82dcc0cdcaec8d23094 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2016-11-26android boottime2: improvement on avoiding bad caseYongqin Liu
there are the cases that service like bootanim or surfaceflinger was started more than once, and this case will make confusion for getting average information, so check this case first, and report error when found such cases Change-Id: I23f158847c371dae56155d53affbf298c43e41a4 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2016-11-22android boottime2: suppport to collect data from multiple bootYongqin Liu
since the the boottime optimization work is very hard, and boottime reduced will not be obvious compare to the 20s around value, so use average from multiple time is important for the boottime optimization check Change-Id: I9786dbdf5be3109eedf57a0ce0731184f5ab7826 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>