Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_misc.c 


Log Message:
Print out garbage collection metrics so we have this in mind moving forward.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_misc.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- ewl_misc.c  9 Oct 2005 05:18:39 -0000       1.16
+++ ewl_misc.c  17 Oct 2005 15:21:07 -0000      1.17
@@ -864,9 +864,12 @@
        Evas *evas;
        Ewl_Widget *w;
        Evas_Object *obj;
+       int cleanup;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
 
+       cleanup = 0;
+
        while ((w = ecore_list_remove_first(destroy_list))) {
                if (ewl_object_queued_has(EWL_OBJECT(w),
                                          EWL_FLAG_QUEUED_CSCHEDULED))
@@ -874,13 +877,25 @@
                ewl_callback_call(w, EWL_CALLBACK_DESTROY);
                ewl_callback_del_type(w, EWL_CALLBACK_DESTROY);
                FREE(w);
+               cleanup++;
        }
+       printf("Destroyed %d EWL objects\n", cleanup);
+
+       cleanup = 0;
 
-       while ((obj = ecore_list_remove_first(free_evas_object_list)))
+       while ((obj = ecore_list_remove_first(free_evas_object_list))) {
                evas_object_del(obj);
+               cleanup++;
+       }
+       printf("Destroyed %d Evas Objects\n", cleanup);
 
-       while ((evas = ecore_list_remove_first(free_evas_object_list)))
+       cleanup = 0;
+
+       while ((evas = ecore_list_remove_first(free_evas_list))) {
                evas_free(evas);
+               cleanup++;
+       }
+       printf("Destroyed %d Evas\n", cleanup);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to