From: Gwanglim Lee Date: Thu, 12 May 2016 04:41:06 +0000 (+0900) Subject: PRCTL: For performance debugging, trace log functions are inserted into some importan... X-Git-Tag: accepted/tizen/common/20160512.144111~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F56%2F69156%2F1;p=platform%2Fupstream%2Fenlightenment.git PRCTL: For performance debugging, trace log functions are inserted into some important point of initialization functions. Change-Id: Idb8fd5d2b80e0ba5d0400c1ec21298e88b73bcb2 --- diff --git a/src/bin/e_main.c b/src/bin/e_main.c index f357994..8d4372c 100644 --- a/src/bin/e_main.c +++ b/src/bin/e_main.c @@ -296,6 +296,7 @@ _e_main_subsystem_defer(void *data EINA_UNUSED) static Eina_Bool _e_main_deferred_job_schedule(void *d EINA_UNUSED, int type EINA_UNUSED, void *ev EINA_UNUSED) { + PRCTL("[Winsys] all modules loaded"); ecore_idler_add(_e_main_subsystem_defer, NULL); return ECORE_CALLBACK_DONE; } @@ -322,6 +323,7 @@ main(int argc, char **argv) #endif TRACE_DS_BEGIN(MAIN:BEGIN STARTUP); TS("Begin Startup"); + PRCTL("[Winsys] start of main"); /* trap deadly bug signals and allow some form of sane recovery */ /* or ability to gdb attach and debug at this point - better than your */ @@ -1094,12 +1096,14 @@ _e_main_screens_init(void) if (!e_client_init()) return 0; TS("Compositor Init"); + PRCTL("[Winsys] start of compositor init"); if (!e_comp_init()) { e_error_message_show(_("Enlightenment cannot create a compositor.\n")); _e_main_shutdown(-1); } + PRCTL("[Winsys] end of compositor init"); _e_main_desk_restore(); return 1; @@ -1268,6 +1272,7 @@ _e_main_create_wm_ready(void) if (_wmready_checker) { TS("[WM] WINDOW MANAGER is READY!!!"); + PRCTL("[Winsys] WINDOW MANAGER is READY!!!"); fclose(_wmready_checker); /*TODO: Next lines should be removed. */ @@ -1277,15 +1282,18 @@ _e_main_create_wm_ready(void) if (_tmp_wm_ready_checker) { TS("[WM] temporary wm_ready path is created."); + PRCTL("[Winsys] temporary wm_ready path is created."); fclose(_tmp_wm_ready_checker); } else { TS("[WM] temporary wm_ready path create failed."); + PRCTL("[Winsys] temporary wm_ready path create failed."); } } else { TS("[WM] WINDOW MANAGER is READY. BUT, failed to create .wm_ready file."); + PRCTL("[Winsys] WINDOW MANAGER is READY. BUT, failed to create .wm_ready file."); } } diff --git a/src/bin/e_module.c b/src/bin/e_module.c index 448fb16..52d8212 100644 --- a/src/bin/e_module.c +++ b/src/bin/e_module.c @@ -255,8 +255,17 @@ e_module_all_load(void) snprintf(buf, sizeof(buf), _("Loading Module: %s"), em->name); e_init_status_set(buf); + PRCTL("[Winsys] start of Loading Module: %s", em->name); m = e_module_new(em->name); - if (m) e_module_enable(m); + if (m) + { + e_module_enable(m); + PRCTL("[Winsys] end of Loading Module: %s", em->name); + } + else + { + PRCTL("[Winsys] end of Loading Module: Failed to load %s", em->name); + } } }