--------------------- PatchSet 10337 Date: 2007/12/28 07:50:51 Author: adri Branch: s27_adri Tag: (none) Log: Add in cachemgr page to just dump the location of all buffers and (for now) who created it. Members: src/mem.c:1.31.8.1->1.31.8.2 Index: squid/src/mem.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/mem.c,v retrieving revision 1.31.8.1 retrieving revision 1.31.8.2 diff -u -r1.31.8.1 -r1.31.8.2 --- squid/src/mem.c 6 Dec 2007 08:10:26 -0000 1.31.8.1 +++ squid/src/mem.c 28 Dec 2007 07:50:51 -0000 1.31.8.2 @@ -1,6 +1,6 @@ /* - * $Id: mem.c,v 1.31.8.1 2007/12/06 08:10:26 adri Exp $ + * $Id: mem.c,v 1.31.8.2 2007/12/28 07:50:51 adri Exp $ * * DEBUG: section 13 High Level Memory Pool Management * AUTHOR: Harvest Derived @@ -109,6 +109,21 @@ #endif } +static void +memBufTStats(StoreEntry *sentry) +{ + dlink_node *n; + buf_t *b; + + n = buf_active_list.head; + while (n != NULL) { + b = n->data; + n = n->next; + storeAppendPrintf(sentry, "buf: %p: created %s:%d\n", b, b->create.file, b->create.line); + } + +} + /* * public routines @@ -309,6 +324,7 @@ cachemgrRegister("mem", "Memory Utilization", memStats, 0, 1); + cachemgrRegister("buf", "Buffer Utilisation", memBufTStats, 0, 1); } /*