Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_misc.c Log Message: Use a command line option to enable garbage collection messages. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_misc.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -3 -r1.20 -r1.21 --- ewl_misc.c 20 Oct 2005 05:38:08 -0000 1.20 +++ ewl_misc.c 21 Oct 2005 05:17:56 -0000 1.21 @@ -13,6 +13,7 @@ static unsigned int use_engine = EWL_ENGINE_ALL; static unsigned int phase_status = 0; static unsigned int print_theme_keys = 0; +static unsigned int print_gc_reap = 0; static unsigned int debug_level = 0; static Ecore_Idle_Enterer *idle_enterer = NULL; @@ -409,6 +410,10 @@ print_theme_keys = 1; matched++; } + else if (!strcmp(argv[i], "--ewl-print-gc-reap")) { + print_gc_reap = 1; + matched++; + } else if (!strcmp(argv[i], "--ewl-software-x11")) { use_engine = EWL_ENGINE_SOFTWARE_X11; matched++; @@ -870,6 +875,9 @@ cleanup = 0; + if (print_gc_reap) + printf("---\n"); + while ((w = ecore_list_remove_first(destroy_list))) { if (ewl_object_queued_has(EWL_OBJECT(w), EWL_FLAG_QUEUED_CSCHEDULED)) @@ -879,7 +887,8 @@ FREE(w); cleanup++; } - printf("Destroyed %d EWL objects\n", cleanup); + if (print_gc_reap) + printf("Destroyed %d EWL objects\n", cleanup); cleanup = 0; @@ -887,7 +896,8 @@ evas_object_del(obj); cleanup++; } - printf("Destroyed %d Evas Objects\n", cleanup); + if (print_gc_reap) + printf("Destroyed %d Evas Objects\n", cleanup); cleanup = 0; @@ -895,7 +905,11 @@ evas_free(evas); cleanup++; } - printf("Destroyed %d Evas\n", cleanup); + if (print_gc_reap) + printf("Destroyed %d Evas\n", cleanup); + + if (print_gc_reap) + printf("---\n"); 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