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
14namespace Mem
15{
16
18{
19public:
20 Allocator *pool = nullptr;
21 const char *label = nullptr;
22 PoolMeter *meter = nullptr;
23 int obj_size = 0;
25 int chunk_size = 0;
26
27 int chunks_alloc = 0;
28 int chunks_inuse = 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
46extern size_t GlobalStats(PoolStats &);
47
48} // namespace Mem
49
50#endif /* SQUID__SRC_MEM_STATS_H */
int items_inuse
Definition: Stats.h:33
const char * label
Definition: Stats.h:21
int overhead
Definition: Stats.h:36
int obj_size
Definition: Stats.h:23
int items_alloc
Definition: Stats.h:32
int chunk_size
Definition: Stats.h:25
Allocator * pool
Definition: Stats.h:20
int chunks_free
Definition: Stats.h:30
int chunks_inuse
Definition: Stats.h:28
int chunk_capacity
Definition: Stats.h:24
int chunks_partial
Definition: Stats.h:29
int chunks_alloc
Definition: Stats.h:27
PoolMeter * meter
Definition: Stats.h:22
int items_idle
Definition: Stats.h:34
Memory Management.
Definition: Allocator.h:17
size_t GlobalStats(PoolStats &)
Definition: Stats.cc:15

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors