admin
2023-03-07 8b06b1cbf112d55307ea8a6efe711db4e7506d89
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef JEMALLOC_INTERNAL_BIN_STATS_H
#define JEMALLOC_INTERNAL_BIN_STATS_H
 
#include "jemalloc/internal/mutex_prof.h"
 
typedef struct bin_stats_s bin_stats_t;
struct bin_stats_s {
    /*
     * Total number of allocation/deallocation requests served directly by
     * the bin.  Note that tcache may allocate an object, then recycle it
     * many times, resulting many increments to nrequests, but only one
     * each to nmalloc and ndalloc.
     */
    uint64_t    nmalloc;
    uint64_t    ndalloc;
 
    /*
     * Number of allocation requests that correspond to the size of this
     * bin.  This includes requests served by tcache, though tcache only
     * periodically merges into this counter.
     */
    uint64_t    nrequests;
 
    /*
     * Current number of regions of this size class, including regions
     * currently cached by tcache.
     */
    size_t        curregs;
 
    /* Number of tcache fills from this bin. */
    uint64_t    nfills;
 
    /* Number of tcache flushes to this bin. */
    uint64_t    nflushes;
 
    /* Total number of slabs created for this bin's size class. */
    uint64_t    nslabs;
 
    /*
     * Total number of slabs reused by extracting them from the slabs heap
     * for this bin's size class.
     */
    uint64_t    reslabs;
 
    /* Current number of slabs in this bin. */
    size_t        curslabs;
 
    /* Current size of nonfull slabs heap in this bin. */
    size_t        nonfull_slabs;
 
    mutex_prof_data_t mutex_data;
};
 
#endif /* JEMALLOC_INTERNAL_BIN_STATS_H */