]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Expose Pool use count in Mem::AllocatorProxy (and MEMPROXY_CLASS)
authorFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 29 Oct 2015 08:37:13 +0000 (09:37 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 29 Oct 2015 08:37:13 +0000 (09:37 +0100)
src/mem/AllocatorProxy.h

index 18faf69434825acdde70dd16346bfe85aa738eb4..1ea514da06b534709f3d2e966d83a7b632ee3b2f 100644 (file)
@@ -39,6 +39,7 @@ class MemPoolMeter;
         if (address) \
             Pool().freeOne(address); \
     } \
+    static int UseCount() { return Pool().inUseCount(); } \
     private:
 
 namespace Mem