Add trace logs to efl base 17/252017/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 21 Jan 2021 21:47:42 +0000 (06:47 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 21 Jan 2021 21:47:42 +0000 (06:47 +0900)
Change-Id: I59c94a4063aee0a583933bee10d59c42eb9121ef
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
CMakeLists.txt
src/efl_base/appcore_efl_base.c

index a85c605..038b35e 100644 (file)
@@ -99,7 +99,7 @@ SET(SRCS_efl src/legacy/appcore-efl.c src/efl_base/appcore_efl_base.c)
 SET(HEADERS_efl appcore-efl.h appcore_efl_base.h)
 
 INCLUDE(FindPkgConfig)
-SET(APPCORE_PKG_CHECK_MODULES2 "elementary dlog aul bundle")
+SET(APPCORE_PKG_CHECK_MODULES2 "elementary dlog aul bundle ttrace")
 
 pkg_check_modules(pkg_efl REQUIRED ${APPCORE_PKG_CHECK_MODULES2})
 
index 246790f..f84ad84 100644 (file)
@@ -23,6 +23,7 @@
 #include <glib.h>
 #include <Elementary.h>
 #include <vconf.h>
+#include <ttrace.h>
 
 #include "appcore_efl_base_private.h"
 #include "appcore_efl_base.h"
@@ -181,8 +182,11 @@ static void __efl_app_init(int argc, char **argv, void *data)
        const char *hwacc;
        int vt_automode = 0;
 
+       traceBegin(TTRACE_TAG_APPLICATION_MANAGER, "APPCORE:ELM_INIT");
        elm_init(argc, argv);
+       traceEnd(TTRACE_TAG_APPLICATION_MANAGER);
 
+       traceBegin(TTRACE_TAG_APPLICATION_MANAGER, "APPCORE:ELM_CONFIG_SET");
        hint = appcore_efl_base_get_hint();
        if ((hint & APPCORE_EFL_BASE_HINT_HW_ACC_CONTROL) &&
                        !getenv("AUL_HWACC")) {
@@ -199,12 +203,15 @@ static void __efl_app_init(int argc, char **argv, void *data)
                        _DBG("elm_config_accel_preference_set is not called");
                }
        }
+       traceEnd(TTRACE_TAG_APPLICATION_MANAGER);
 
+       traceBegin(TTRACE_TAG_APPLICATION_MANAGER, "APPCORE:VC_ELM_CHECK");
        vconf_get_bool(VCONFKEY_VC_VOICE_TOUCH_AUTOMODE, &vt_automode);
        if (vt_automode) {
                __vc_elm_thread = g_thread_new("vc-elm-loader",
                                __vc_elm_loader, NULL);
        }
+       traceEnd(TTRACE_TAG_APPLICATION_MANAGER);
 }
 
 static void __efl_app_finish(void)