diff options
author | Myungki Lee <mk5004.lee@samsung.com> | 2016-02-23 17:21:28 +0900 |
---|---|---|
committer | Myungki Lee <mk5004.lee@samsung.com> | 2016-02-23 17:21:28 +0900 |
commit | de28b75969f00639313946774c54b7f7781955fc (patch) | |
tree | 2f18b169a7e595f582523ea728abbe4fd9b5f4c9 | |
parent | d5286b1f97b3836cfc563cd08a12db58b9e0208c (diff) | |
download | launchpad-de28b75969f00639313946774c54b7f7781955fc.tar.gz launchpad-de28b75969f00639313946774c54b7f7781955fc.tar.bz2 launchpad-de28b75969f00639313946774c54b7f7781955fc.zip |
Add trace point
Change-Id: I31c72ef80ff1dfe625b2b51551b895d3d62379c9
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
-rwxr-xr-x | CMakeLists.txt | 1 | ||||
-rw-r--r-- | packaging/launchpad.spec | 1 | ||||
-rwxr-xr-x | src/launchpad.c | 4 |
3 files changed, 6 insertions, 0 deletions
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 <systemd/sd-daemon.h> #include <glib.h> #include <linux/limits.h> +#include <ttrace.h> #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; } |