forked from enlightenment/enlightenment
add more startup timing info for non-debug builds so people can see what the real startup time of e is
SVN revision: 74469
This commit is contained in:
parent
5389c8a964
commit
2850c28167
|
@ -1917,16 +1917,26 @@ _e_main_cb_idle_before(void *data __UNUSED__)
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_e_main_cb_idle_after(void *data __UNUSED__)
|
_e_main_cb_idle_after(void *data __UNUSED__)
|
||||||
{
|
{
|
||||||
static int first_idle = 1;
|
static int first_idle;
|
||||||
|
|
||||||
edje_freeze();
|
edje_freeze();
|
||||||
|
|
||||||
|
#ifdef E17_RELEASE_BUILD
|
||||||
|
first_idle = 1;
|
||||||
if (first_idle)
|
if (first_idle)
|
||||||
{
|
{
|
||||||
TS("SLEEP");
|
TS("SLEEP");
|
||||||
first_idle = 0;
|
first_idle = 0;
|
||||||
e_precache_end = EINA_TRUE;
|
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;
|
return ECORE_CALLBACK_RENEW;
|
||||||
}
|
}
|
||||||
|
|
|
@ -546,6 +546,11 @@ _e_module_cb_idler(void *data __UNUSED__)
|
||||||
eina_list_remove_list(_e_modules_delayed, _e_modules_delayed);
|
eina_list_remove_list(_e_modules_delayed, _e_modules_delayed);
|
||||||
m = NULL;
|
m = NULL;
|
||||||
if (name) m = e_module_new(name);
|
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);
|
if (m) e_module_enable(m);
|
||||||
eina_stringshare_del(name);
|
eina_stringshare_del(name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue