Stats.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3  *
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.
7  */
8 
9 #ifndef SQUID_SRC_MEM_STATS_H
10 #define SQUID_SRC_MEM_STATS_H
11 
12 #include "mem/forward.h"
13 
14 namespace Mem
15 {
16 
17 class PoolStats
18 {
19 public:
20  Allocator *pool = nullptr;
21  const char *label = nullptr;
22  PoolMeter *meter = nullptr;
23  int obj_size = 0;
24  int chunk_capacity = 0;
25  int chunk_size = 0;
26 
27  int chunks_alloc = 0;
28  int chunks_inuse = 0;
29  int chunks_partial = 0;
30  int chunks_free = 0;
31 
32  int items_alloc = 0;
33  int items_inuse = 0;
34  int items_idle = 0;
35 
36  int overhead = 0;
37 };
38 
46 extern size_t GlobalStats(PoolStats &);
47 
48 } // namespace Mem
49 
50 #endif /* SQUID_SRC_MEM_STATS_H */
Allocator * pool
Definition: Stats.h:20
int items_idle
Definition: Stats.h:34
PoolMeter * meter
Definition: Stats.h:22
int obj_size
Definition: Stats.h:23
const char * label
Definition: Stats.h:21
int items_inuse
Definition: Stats.h:33
size_t GlobalStats(PoolStats &)
Definition: Stats.cc:15
Memory Management.
Definition: Allocator.h:16
int overhead
Definition: Stats.h:36
int chunk_capacity
Definition: Stats.h:24
int chunks_partial
Definition: Stats.h:29
int chunk_size
Definition: Stats.h:25
int chunks_free
Definition: Stats.h:30
int chunks_alloc
Definition: Stats.h:27
int chunks_inuse
Definition: Stats.h:28
int items_alloc
Definition: Stats.h:32

 

Introduction

Documentation

Support

Miscellaneous