[gnome-builder] cache: add info on cache eviction



commit 8b41a6eeb8cc05c94c93d677165cf9dbe72744b7
Author: Christian Hergert <chergert redhat com>
Date:   Thu May 12 17:45:25 2016 +0300

    cache: add info on cache eviction

 contrib/egg/egg-task-cache.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/contrib/egg/egg-task-cache.c b/contrib/egg/egg-task-cache.c
index 0d1865b..0286ba9 100644
--- a/contrib/egg/egg-task-cache.c
+++ b/contrib/egg/egg-task-cache.c
@@ -639,6 +639,8 @@ egg_task_cache_dispose (GObject *object)
       count = g_hash_table_size (self->cache);
       g_clear_pointer (&self->cache, g_hash_table_unref);
 
+      g_debug ("Evected cache of %"G_GINT64_FORMAT" items", count);
+
       EGG_COUNTER_SUB (cached, count);
     }
 


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