From de28b75969f00639313946774c54b7f7781955fc Mon Sep 17 00:00:00 2001 From: Myungki Lee Date: Tue, 23 Feb 2016 17:21:28 +0900 Subject: [PATCH] Add trace point Change-Id: I31c72ef80ff1dfe625b2b51551b895d3d62379c9 Signed-off-by: Myungki Lee --- CMakeLists.txt | 1 + packaging/launchpad.spec | 1 + src/launchpad.c | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d66a245..998882d 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,7 @@ PKG_CHECK_MODULES(${this_target_pool} REQUIRED security-manager bundle gio-2.0 + ttrace ) FOREACH(flag ${${this_target_pool}_CFLAGS}) diff --git a/packaging/launchpad.spec b/packaging/launchpad.spec index c40f277..eb358ab 100644 --- a/packaging/launchpad.spec +++ b/packaging/launchpad.spec @@ -19,6 +19,7 @@ BuildRequires: pkgconfig(elementary) BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(security-manager) BuildRequires: pkgconfig(aul) +BuildRequires: pkgconfig(ttrace) Requires(post): /sbin/ldconfig Requires(post): /usr/bin/systemctl diff --git a/src/launchpad.c b/src/launchpad.c index 97fb47c..5f609e7 100755 --- a/src/launchpad.c +++ b/src/launchpad.c @@ -32,6 +32,7 @@ #include #include #include +#include #include "perf.h" #include "launchpad_common.h" @@ -887,6 +888,7 @@ static gboolean __handle_launch_event(gpointer data) int loader_id; int ret; + traceBegin(TTRACE_TAG_APPLICATION_MANAGER, "LAUNCHPAD:LAUNCH"); pkt = _recv_pkt_raw(fd, &clifd, &cr); if (!pkt) { _E("packet is NULL"); @@ -1019,6 +1021,8 @@ end: if (pkt != NULL) free(pkt); + traceEnd(TTRACE_TAG_APPLICATION_MANAGER); + return G_SOURCE_CONTINUE; } -- 2.7.4