From: wessels <> Date: Thu, 23 Jul 1998 03:07:36 +0000 (+0000) Subject: add total memory accounted to info page X-Git-Tag: SQUID_3_0_PRE1~3013 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d1f3c827e01c3e1c4a3380452be8cc591b6735c;p=thirdparty%2Fsquid.git add total memory accounted to info page --- diff --git a/src/protos.h b/src/protos.h index 3ecc5e4e6b..962dd6653d 100644 --- a/src/protos.h +++ b/src/protos.h @@ -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); diff --git a/src/stat.cc b/src/stat.cc index 05cffea94c..7d3670b48a 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -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",