update launching time measure tool 32/148132/1
authorCho Woong Suk <ws77.cho@samsung.com>
Thu, 7 Sep 2017 01:43:51 +0000 (10:43 +0900)
committerCho Woong Suk <ws77.cho@samsung.com>
Thu, 7 Sep 2017 01:43:51 +0000 (10:43 +0900)
Change-Id: Ie8c1e2ea9cb8d89f8d8ddaf2cf6485f902147a88

tools/performance_test.sh
tools/timestamp.sh

index 43b7962..ed289fb 100755 (executable)
@@ -132,7 +132,7 @@ execute_time_stamp_auto ()
     echo ""
 #execute dlogstreamer
     sdb shell "dlogutil -c"
-    sdb shell "dlogutil -v time AUL APP_CORE_UI_BASE|grep -E 'launch.*app_request_to_launchpad_for_uid.*request.*appid|appcore_ui_base_window_on_show.*[EVENT_TEST][EVENT]'" >> $STREAM_LOG_FILE &
+    sdb shell "dlogutil -v time AUL LAUNCH|grep -E 'launch.*app_request_to_launchpad_for_uid.*request.*appid|Launching:done]'" >> $STREAM_LOG_FILE &
     DLOG_STREAMER_PID=$!
 #execute timestamp
     /bin/bash ./timestamp.sh $STREAM_LOG_FILE $RESULT_LOG_FILE &
@@ -145,7 +145,7 @@ execute_time_stamp_auto_memory ()
     echo "[>] Start performance test that applciation launching memory"
     echo ""
     sdb shell "dlogutil -c"
-    sdb shell "dlogutil -v time AUL APP_CORE_UI_BASE|grep -E 'app_request_to_launchpad_for_uid.*[SECURE_LOG].*launch.*request|appcore_ui_base_window_on_show.*[EVENT_TEST][EVENT]'" >> $STREAM_LOG_FILE &
+    sdb shell "dlogutil -v time AUL LAUNCH|grep -E 'app_request_to_launchpad_for_uid.*[SECURE_LOG].*launch.*request|Launching:done'" >> $STREAM_LOG_FILE &
     DLOG_STREAMER_PID=$!
 #execute timestamp
     /bin/bash ./timestamp.sh $STREAM_LOG_FILE $RESULT_LOG_FILE &
@@ -164,7 +164,7 @@ execute_time_stamp_manual ()
     rm $STREAM_LOG_FILE
     touch $STREAM_LOG_FILE
     sdb shell "dlogutil -c"
-    sdb shell "dlogutil -v time AUL APP_CORE_UI_BASE|grep -E 'launch.*app_request_to_launchpad_for_uid.*request.*appid|appcore_ui_base_window_on_show.*[EVENT_TEST][EVENT]'" >> $STREAM_LOG_FILE &
+    sdb shell "dlogutil -v time AUL LAUNCH|grep -E 'launch.*app_request_to_launchpad_for_uid.*request.*appid|Launching:done'" >> $STREAM_LOG_FILE &
     DLOG_STREAMER_PID=$!
 #execute timestamp
     /bin/bash ./timestamp.sh $STREAM_LOG_FILE $RESULT_LOG_FILE
@@ -181,7 +181,7 @@ execute_time_stamp_manual_trace ()
     rm $STREAM_LOG_FILE
     touch $STREAM_LOG_FILE
     sdb shell "dlogutil -c"
-    sdb shell "dlogutil -v time AUL APP_CORE_UI_BASE|grep -E 'app_request_to_launchpad_for_uid.*[SECURE_LOG].*launch.*request|appcore_ui_base_window_on_show.*[EVENT_TEST][EVENT]'" >> $STREAM_LOG_FILE &
+    sdb shell "dlogutil -v time AUL LAUNCH|grep -E 'app_request_to_launchpad_for_uid.*[SECURE_LOG].*launch.*request|Launching:done'" >> $STREAM_LOG_FILE &
     DLOG_STREAMER_PID=$!
 #execute timestamp
     /bin/bash ./timestamp.sh $STREAM_LOG_FILE $RESULT_LOG_FILE &
@@ -202,7 +202,7 @@ execute_time_stamp_manual_memory ()
     rm $STREAM_LOG_FILE
     touch $STREAM_LOG_FILE
     sdb shell "dlogutil -c"
-    sdb shell "dlogutil -v time AUL APP_CORE_UI_BASE|grep -E 'app_request_to_launchpad_for_uid.*[SECURE_LOG].*launch.*request|appcore_ui_base_window_on_show.*[EVENT_TEST][EVENT]'" >> $STREAM_LOG_FILE &
+    sdb shell "dlogutil -v time AUL LAUNCH|grep -E 'app_request_to_launchpad_for_uid.*[SECURE_LOG].*launch.*request|Launching:done'" >> $STREAM_LOG_FILE &
     DLOG_STREAMER_PID=$!
 #execute timestamp
     /bin/bash ./timestamp.sh $STREAM_LOG_FILE $RESULT_LOG_FILE &
index 8d94aad..5b6ae2b 100755 (executable)
@@ -35,9 +35,9 @@ while inotifywait -qqre modify "$LOG_FILE"; do
         fi
     fi
 
-    if [[ $GET_LOG == *APP_CORE* ]] && [ "$IS_START" = true ]
+    if [[ $GET_LOG == *"LAUNCH"* ]] && [ "$IS_START" = true ]
     then
-        END_T=$(echo "$GET_LOG" | grep SHOW | awk '{print $2}')
+        END_T=$(echo "$GET_LOG" | grep Launching | awk '{print $2}')
         END_T=${END_T%%+0900}
         END_T=$(echo $END_T | sed "s/:/./g")