]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
add total memory accounted to info page
authorwessels <>
Thu, 23 Jul 1998 03:07:36 +0000 (03:07 +0000)
committerwessels <>
Thu, 23 Jul 1998 03:07:36 +0000 (03:07 +0000)
src/protos.h
src/stat.cc

index 3ecc5e4e6b584a6384861b2231b137e68bee044c..962dd6653d326f52b65e23f1be61507bb8f83824 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: protos.h,v 1.237 1998/07/22 20:53:59 wessels Exp $
+ * $Id: protos.h,v 1.238 1998/07/22 21:07:36 wessels Exp $
  *
  *
  * SQUID Internet Object Cache  http://squid.nlanr.net/Squid/
@@ -700,7 +700,6 @@ extern void memFree4K(void *);
 extern void memFree8K(void *);
 extern void memFreeDISK(void *);
 extern int memInUse(mem_type);
-extern size_t memTotalAllocated();
 
 /* MemPool */
 extern MemPool *memPoolCreate(const char *label, size_t obj_size);
index 05cffea94c7870882580f8831b5df002fe9a1716..7d3670b48a37c7c736038470c2ff9efb00ccfd6a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: stat.cc,v 1.264 1998/07/22 20:37:52 wessels Exp $
+ * $Id: stat.cc,v 1.265 1998/07/22 21:07:37 wessels Exp $
  *
  * DEBUG: section 18    Cache Manager Statistics
  * AUTHOR: Harvest Derived
@@ -547,6 +547,9 @@ info_get(StoreEntry * sentry)
        mp.treeoverhead);
 #endif /* HAVE_EXT_MALLINFO */
 #endif /* HAVE_MALLINFO */
+    storeAppendPrintf(sentry, "Memory accounted for:\n");
+    storeAppendPrintf(sentry, "\tTotal accounted:       %6d KB %d%%\n",
+       memTotalAllocated());
 
     storeAppendPrintf(sentry, "File descriptor usage for %s:\n", appname);
     storeAppendPrintf(sentry, "\tMaximum number of file descriptors:   %4d\n",