From f7c886379bf22dc4653fd121c39181c9532a0d7d Mon Sep 17 00:00:00 2001 From: metrics Date: Wed, 8 Nov 2006 11:19:30 +0000 Subject: [PATCH] #if DEBUG noisy printf's with onefang's permission. :) SVN revision: 27018 --- src/bin/e_apps.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bin/e_apps.c b/src/bin/e_apps.c index f5687ff98..ca810a831 100644 --- a/src/bin/e_apps.c +++ b/src/bin/e_apps.c @@ -162,7 +162,9 @@ e_app_init(void) } ecore_list_destroy(_e_apps_all_filenames); } +#if DEBUG printf("INITIAL APP SCAN %3.3f\n", ecore_time_get() - begin); +#endif ecore_desktop_instrumentation_print(); ecore_desktop_instrumentation_reset(); _e_apps_hash_idler.begin = ecore_time_get(); @@ -212,9 +214,11 @@ _e_apps_hash_idler_cb(void *data) } if (idler->apps == NULL) { +#if DEBUG printf("\nIDLE APP FILLING SCAN %3.3f\n", ecore_time_get() - idler->begin); #if CLEVER_BORDERS printf("APP BORDER SETUP %3.6f (average %2.6f) %d globs\n", border_setup_time, border_setup_time / border_setup_count, glob_count); +#endif #endif idler->idler = NULL; ecore_desktop_instrumentation_print(); @@ -1464,6 +1468,7 @@ e_app_border_find(E_Border *bd) border_count++; border_time += time; border_clever_time += clever_time; +#if DEBUG #if CLEVER_BORDERS && OLD_BORDERS printf("APP BORDER SCAN NEW - %2.6f, OLD - %2.6f (average %2.6f, %2.6f) FOUND %s AND %s\n", clever_time, time, border_clever_time / border_count, border_time / border_count, @@ -1479,6 +1484,7 @@ e_app_border_find(E_Border *bd) time, border_time / border_count, ((a_match == NULL) ? "NOTHING" : a_match->path)); #endif +#endif #endif return a_match; }