Enlightenment CVS committal

Author  : onefang
Project : e17
Module  : apps/e_utils

Dir     : e17/apps/e_utils/src/bin/e17genmenu/src/bin


Modified Files:
        main.c parse.c 


Log Message:
More instrumentation.

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/apps/e_utils/src/bin/e17genmenu/src/bin/main.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- main.c      19 Feb 2006 08:13:49 -0000      1.24
+++ main.c      19 Feb 2006 08:29:04 -0000      1.25
@@ -218,7 +218,7 @@
    return;
 }
 
-double convert, icon_time = 0.0;
+double convert, icon_time = 0.0, cache_time = 0.0;
 int menu_count, item_count;
 
 int
@@ -262,7 +262,8 @@
             get_home());
    system(path);
 
-  printf("\nTotal time %3.3f seconds, generate fdo paths %3.3f, convert fdo 
menus %3.3f, generate %d eaps in %d menus %3.3f, finding icons %3.3f.\n", 
ecore_time_get() - start, paths, convert, item_count, menu_count, gen - 
icon_time, icon_time);
+  printf("\nTotal time %3.3f seconds, finding fdo paths %3.3f, converting fdo 
menus %3.3f, generating %d eaps in %d menus %3.3f, finding icons %3.3f, 
generating eap caches %3.3f.\n",
+         ecore_time_get() - start, paths, convert, item_count, menu_count, gen 
- (icon_time + cache_time), icon_time, cache_time);
 
    parse_ini_shutdown();
    fdo_paths_shutdown();
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/apps/e_utils/src/bin/e17genmenu/src/bin/parse.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- parse.c     19 Feb 2006 07:28:13 -0000      1.13
+++ parse.c     19 Feb 2006 08:29:04 -0000      1.14
@@ -6,6 +6,8 @@
 #include "order.h"
 #include "parse.h"
 
+extern double cache_time;
+
 static void _parse_desktop_del(Desktop *desktop);
 
 
@@ -206,6 +208,7 @@
    char *home, *window_class, *exec, *category, *icon;
    char path[MAX_PATH], order_path[MAX_PATH], buffer[MAX_PATH];
    int overwrite;
+   double begin;
 
    if (!eap)
       return;
@@ -281,18 +284,22 @@
    if (window_class != NULL)
       write_eap(path, "app/window/class", window_class);
 
+   begin = ecore_time_get();
    snprintf(buffer, sizeof(buffer),
             "enlightenment_eapp_cache_gen %s/.e/e/applications/all -r > 
/dev/null 2>&1",
             getenv("HOME"));
    system(buffer);
+   cache_time += ecore_time_get() - begin;
 
    category = NULL;
    if (menu_path != NULL)
       {
+             begin = ecore_time_get();
              snprintf(buffer, sizeof(buffer),
                       "enlightenment_eapp_cache_gen 
%s/.e/e/applications/favorite/%s -r /dev/null 2>&1",
                       getenv("HOME"), menu_path);
              system(buffer);
+             cache_time += ecore_time_get() - begin;
              snprintf(order_path, sizeof(order_path), "%s" EFAVDIR "/%s", home,
                       menu_path);
              modify_order(order_path, eap->eap_name);
@@ -302,10 +309,12 @@
         category = find_category(eap->categories);
         if (category != NULL)
           {
+             begin = ecore_time_get();
              snprintf(buffer, sizeof(buffer),
                       "enlightenment_eapp_cache_gen 
%s/.e/e/applications/favorite/%s -r /dev/null 2>&1",
                       getenv("HOME"), category);
              system(buffer);
+             cache_time += ecore_time_get() - begin;
              snprintf(order_path, sizeof(order_path), "%s" EFAVDIR "/%s", home,
                       category);
              modify_order(order_path, eap->eap_name);




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to