1 | #ifndef JEMALLOC_INTERNAL_PROF_STATS_H |
---|---|
2 | #define JEMALLOC_INTERNAL_PROF_STATS_H |
3 | |
4 | typedef struct prof_stats_s prof_stats_t; |
5 | struct prof_stats_s { |
6 | uint64_t req_sum; |
7 | uint64_t count; |
8 | }; |
9 | |
10 | extern malloc_mutex_t prof_stats_mtx; |
11 | |
12 | void prof_stats_inc(tsd_t *tsd, szind_t ind, size_t size); |
13 | void prof_stats_dec(tsd_t *tsd, szind_t ind, size_t size); |
14 | void prof_stats_get_live(tsd_t *tsd, szind_t ind, prof_stats_t *stats); |
15 | void prof_stats_get_accum(tsd_t *tsd, szind_t ind, prof_stats_t *stats); |
16 | |
17 | #endif /* JEMALLOC_INTERNAL_PROF_STATS_H */ |
18 |