add more startup timing info for non-debug builds so people can see what the real...
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 27 Jul 2012 06:43:14 +0000 (06:43 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 27 Jul 2012 06:43:14 +0000 (06:43 +0000)
SVN revision: 74469

src/bin/e_main.c
src/bin/e_module.c

index 698fdf8..226000a 100644 (file)
@@ -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;
 }
index b4d2a6a..65f08ca 100644 (file)
@@ -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);
      }