From: wessels <> Date: Fri, 6 Oct 2000 05:01:40 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1827 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d480bbc02a06721273e64a7573915db0b7221e94;p=thirdparty%2Fsquid.git DW: - Add counters for the number of calls to memPoolAlloc and memPoolFree. --- diff --git a/src/stat.cc b/src/stat.cc index bcfce0d9b4..ffa81103f4 100644 --- a/src/stat.cc +++ b/src/stat.cc @@ -1,6 +1,6 @@ /* - * $Id: stat.cc,v 1.336 2000/10/05 03:26:48 wessels Exp $ + * $Id: stat.cc,v 1.337 2000/10/05 23:01:40 wessels Exp $ * * DEBUG: section 18 Cache Manager Statistics * AUTHOR: Harvest Derived @@ -87,6 +87,9 @@ static int NCountHist = 0; static StatCounters CountHourHist[N_COUNT_HOUR_HIST]; static int NCountHourHist = 0; +extern unsigned int mem_pool_alloc_calls; +extern unsigned int mem_pool_free_calls; + static void statUtilization(StoreEntry * e) { @@ -587,6 +590,10 @@ info_get(StoreEntry * sentry) storeAppendPrintf(sentry, "Memory accounted for:\n"); storeAppendPrintf(sentry, "\tTotal accounted: %6d KB\n", memTotalAllocated() >> 10); + storeAppendPrintf(sentry, "\tmemPoolAlloc calls: %d\n", + mem_pool_alloc_calls); + storeAppendPrintf(sentry, "\tmemPoolFree calls: %d\n", + mem_pool_free_calls); storeAppendPrintf(sentry, "File descriptor usage for %s:\n", appname); storeAppendPrintf(sentry, "\tMaximum number of file descriptors: %4d\n",