[gimp] only spit out debug output if TILE_PROFILING is defined



commit 8f37a96d70fc9e3e5d6bd7aa6ca7cda2fea57483
Author: Sven Neumann <sven gimp org>
Date:   Thu Jun 4 11:30:25 2009 +0200

    only spit out debug output if TILE_PROFILING is defined
---
 app/base/tile-cache.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/app/base/tile-cache.c b/app/base/tile-cache.c
index 108a21e..aaf2286 100644
--- a/app/base/tile-cache.c
+++ b/app/base/tile-cache.c
@@ -356,6 +356,7 @@ tile_idle_preswap_run (gpointer data)
 #ifdef TILE_PROFILING
       g_printerr("\nidle swapper -> waiting");
 #endif
+
       idle_delay = 0;
       idle_swapper = g_timeout_add_full (G_PRIORITY_LOW,
                                          IDLE_SWAPPER_START,
@@ -397,7 +398,10 @@ tile_idle_preswap_run (gpointer data)
       tile = tile->next;
     }
 
+#ifdef TILE_PROFILING
   g_printerr ("\nidle swapper -> stopped\n");
+#endif
+
   idle_scan_last = NULL;
   idle_swapper = 0;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]