summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2017-02-16 19:28:30 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2017-02-16 19:38:23 +0800
commita7370503c0df74ba0a2c997883ea46ac5fba38f4 (patch)
tree582cf7aeddbd5e13d3cc04e4f6cca8dfb5ef7bf5
parent64313ae7fc07f75eb4c2d00320704515b4deaba1 (diff)
downloadtest-definitions-pipe-a7370503c0df74ba0a2c997883ea46ac5fba38f4.tar.gz
android boottime2: change on INIT_TO_SURFACEFLINGER_START_TIME
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>
-rwxr-xr-xandroid/scripts/boottime2.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/android/scripts/boottime2.sh b/android/scripts/boottime2.sh
index d08561b..678c51c 100755
--- a/android/scripts/boottime2.sh
+++ b/android/scripts/boottime2.sh
@@ -29,9 +29,8 @@
## For each iteration, it will get following boot time information:
## (assuming kernel started at 0 timestamp in this script)
##
-## TOTAL_TIME:
-## the sum of KERNEL_BOOT_TIME, INIT_TO_SURFACEFLINGER_START_TIME,
-## and ANDROID_BOOT_TIME
+## TOTAL_BOOT_TIME:
+## the sum of KERNEL_BOOT_TIME, and ANDROID_BOOT_TIME
##
## KERNEL_BOOT_TIME:
## from kernel started to line "Freeing unused kernel memory" printed,
@@ -46,13 +45,14 @@
## it does not include the time from init start to the time
## surfaceflinger service started
##
+## Also following time values are gotten from dmesg log information,
+## they are not accurate as what we expects, but are able to be used for
+## reference and used for checking our boot time improvements
+##
## INIT_TO_SURFACEFLINGER_START_TIME:
## from the time "Freeing unused kernel memory" printed in dmesg
## to the time "init: Starting service 'surfaceflinger'..." is printed
##
-## Also following time values are gotten from dmesg log information,
-## they are not accurate as what we expects, but are able to be used for
-## reference and used for checking our boot time improvements
## FS_MOUNT_TIME:
## from the time "Freeing unused kernel memory:" printed
## to the time "init: Starting service 'logd'..." printed.
@@ -175,8 +175,8 @@ getBootTimeInfoFromDmesg(){
output_test_result "ANDROID_SERVICE_START_TIME" "fail" "-1" "s"
fi
- if [ ! -z "${CONSOLE_SECONDS}" ] && [ ! -z "${TIME_VALUE}" ] && [ ! -z "${INIT_TO_SURFACEFLINGER_START_TIME}" ]; then
- TOTAL_SECONDS=$(echo "${CONSOLE_SECONDS} ${INIT_TO_SURFACEFLINGER_START_TIME} ${TIME_VALUE}" | awk '{printf "%.3f",$1 + $2 + $3/1000;}')
+ if [ ! -z "${CONSOLE_SECONDS}" ] && [ ! -z "${TIME_VALUE}" ] ; then
+ TOTAL_SECONDS=$(echo "${CONSOLE_SECONDS} ${TIME_VALUE}" | awk '{printf "%.3f",$1 + $2/1000;}')
output_test_result "TOTAL_BOOT_TIME" "pass" "${TOTAL_SECONDS}" "s"
else
output_test_result "TOTAL_BOOT_TIME" "fail" "-1" "s"