From 2850c2816758f8398fb87c6e653f3bd4ebc9f992 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 27 Jul 2012 06:43:14 +0000 Subject: [PATCH] add more startup timing info for non-debug builds so people can see what the real startup time of e is SVN revision: 74469 --- src/bin/e_main.c | 12 +++++++++++- src/bin/e_module.c | 5 +++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/bin/e_main.c b/src/bin/e_main.c index 698fdf8bb..226000aaa 100644 --- a/src/bin/e_main.c +++ b/src/bin/e_main.c @@ -1917,16 +1917,26 @@ _e_main_cb_idle_before(void *data __UNUSED__) static Eina_Bool _e_main_cb_idle_after(void *data __UNUSED__) { - static int first_idle = 1; + static int first_idle; edje_freeze(); +#ifdef E17_RELEASE_BUILD + first_idle = 1; if (first_idle) { TS("SLEEP"); first_idle = 0; e_precache_end = EINA_TRUE; } +#else + if (first_idle++ < 60) + { + TS("SLEEP"); + if (!first_idle) + e_precache_end = EINA_TRUE; + } +#endif return ECORE_CALLBACK_RENEW; } diff --git a/src/bin/e_module.c b/src/bin/e_module.c index b4d2a6a1f..65f08ca8f 100644 --- a/src/bin/e_module.c +++ b/src/bin/e_module.c @@ -546,6 +546,11 @@ _e_module_cb_idler(void *data __UNUSED__) eina_list_remove_list(_e_modules_delayed, _e_modules_delayed); m = NULL; if (name) m = e_module_new(name); +#ifndef E17_RELEASE_BUILD + char buf[1024]; + snprintf(buf, sizeof(buf), "DELAYED MODULE LOAD: %s", name); + e_main_ts(buf); +#endif if (m) e_module_enable(m); eina_stringshare_del(name); }