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