]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mem/Stats.cc
2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
11 #include "mem/Stats.h"
14 Mem::GlobalStats(PoolStats
&stats
)
16 MemPools::GetInstance().flushMeters();
18 stats
.meter
= &TheMeter
;
19 stats
.label
= "Total";
21 stats
.overhead
+= sizeof(MemPools
);
23 /* gather all stats for Totals */
24 size_t pools_inuse
= 0;
25 for (const auto pool
: MemPools::GetInstance().pools
) {
26 if (pool
->getStats(stats
) > 0)
28 stats
.overhead
+= sizeof(Allocator
*);