Add trace point 88/60088/2
authorMyungki Lee <mk5004.lee@samsung.com>
Tue, 23 Feb 2016 08:26:17 +0000 (17:26 +0900)
committerMyungKi Lee <mk5004.lee@samsung.com>
Wed, 24 Feb 2016 00:18:25 +0000 (16:18 -0800)
Change-Id: I65e3690142e4c50fc83bda7de5fe0bb30de77cd4
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
CMakeLists.txt
packaging/aul.spec
src/launch.c

index 5a05d61..ce6cbbd 100644 (file)
@@ -13,7 +13,7 @@ ENDIF (with_x11)
 
 # Set required packages
 INCLUDE(FindPkgConfig)
-SET(AUL-1_LIB_PKG_CHECK_MODULES dlog bundle xdgmime libtzplatform-config pkgmgr-info capi-system-info vconf sqlite3 iniparser gio-2.0 glib-2.0 libxml-2.0)
+SET(AUL-1_LIB_PKG_CHECK_MODULES dlog bundle xdgmime libtzplatform-config pkgmgr-info capi-system-info vconf sqlite3 iniparser gio-2.0 glib-2.0 libxml-2.0 ttrace)
 IF (with_wayland)
        pkg_check_modules(libpkgs REQUIRED ${AUL-1_LIB_PKG_CHECK_MODULES} wayland-client tizen-extension-client ecore-wayland)
 ENDIF (with_wayland)
index 1435acf..1a7eb1e 100644 (file)
@@ -30,6 +30,7 @@ BuildRequires:  pkgconfig(libtzplatform-config)
 BuildRequires:  pkgconfig(capi-system-info)
 BuildRequires:  pkgconfig(iniparser)
 BuildRequires:  pkgconfig(sqlite3)
+BuildRequires:  pkgconfig(ttrace)
 %if %{with wayland}
 BuildRequires:  pkgconfig(ecore-wayland)
 BuildRequires:  pkgconfig(wayland-client)
index b589ed0..25845c6 100644 (file)
@@ -25,6 +25,7 @@
 #include <dirent.h>
 #include <glib.h>
 #include <gio/gio.h>
+#include <ttrace.h>
 
 #include <bundle_internal.h>
 
@@ -391,6 +392,7 @@ int app_request_to_launchpad_for_uid(int cmd, const char *appid, bundle *kb, uid
        int ret = 0;
        bundle *b;
 
+       traceBegin(TTRACE_TAG_APPLICATION_MANAGER, "AUL:REQ_TO_PAD");
        SECURE_LOGD("launch request : %s", appid);
        if (kb == NULL) {
                kb = bundle_create();
@@ -428,6 +430,8 @@ int app_request_to_launchpad_for_uid(int cmd, const char *appid, bundle *kb, uid
        if (must_free)
                bundle_free(kb);
 
+       traceEnd(TTRACE_TAG_APPLICATION_MANAGER);
+
        return ret;
 }