only print module timing info for modules that successfully load

SVN revision: 75662
This commit is contained in:
Mike Blumenkrantz 2012-08-24 13:34:25 +00:00
parent cf7f8e0710
commit de494950d0
1 changed files with 7 additions and 4 deletions

View File

@ -546,12 +546,15 @@ _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);
if (m)
{
#ifndef E17_RELEASE_BUILD
char buf[1024];
snprintf(buf, sizeof(buf), "DELAYED MODULE LOAD: %s", name);
e_main_ts(buf);
char buf[1024];
snprintf(buf, sizeof(buf), "DELAYED MODULE LOAD: %s", name);
e_main_ts(buf);
#endif
if (m) e_module_enable(m);
e_module_enable(m);
}
eina_stringshare_del(name);
}
if (_e_modules_delayed)