summaryrefslogtreecommitdiff
path: root/content/hlcache.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2011-01-20 12:55:51 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2011-01-20 12:55:51 +0000
commit822fffa8e33d17848fb2e85e2724ed74a3150c6a (patch)
tree3d402952b447e2a654c8ba4944b696b90f4811d4 /content/hlcache.c
parentafbcd370c5ac3404b97fa19296514776a394aa30 (diff)
downloadnetsurf-822fffa8e33d17848fb2e85e2724ed74a3150c6a.tar.gz
netsurf-822fffa8e33d17848fb2e85e2724ed74a3150c6a.tar.bz2
A little more debug to help us spot how many users of locked contents there are, during shutdown
svn path=/trunk/netsurf/; revision=11418
Diffstat (limited to 'content/hlcache.c')
-rw-r--r--content/hlcache.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/content/hlcache.c b/content/hlcache.c
index 082f2e877..6d4c3ea48 100644
--- a/content/hlcache.c
+++ b/content/hlcache.c
@@ -94,13 +94,15 @@ void hlcache_finalise(void)
uint32_t num_contents, prev_contents;
hlcache_entry *entry;
hlcache_retrieval_ctx *ctx, *next;
-
+
/* Obtain initial count of contents remaining */
for (num_contents = 0, entry = hlcache_content_list;
entry != NULL; entry = entry->next) {
num_contents++;
}
+ LOG(("%d contents to before cache drain", num_contents));
+
/* Drain cache */
do {
prev_contents = num_contents;
@@ -118,8 +120,8 @@ void hlcache_finalise(void)
hlcache_handle entry_handle = { entry, NULL, NULL };
if (entry->content != NULL) {
- LOG((" %p : %s", entry,
- content_get_url(&entry_handle)));
+ LOG((" %p : %s (%d users)", entry,
+ content_get_url(&entry_handle), content_count_users(entry->content)));
} else {
LOG((" %p", entry));
}