mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 15:26:00 +02:00
Added TCMalloc and JEMalloc projects
This commit is contained in:
parent
53376f3861
commit
652142e189
242 changed files with 67746 additions and 6 deletions
17
BeefRT/JEMalloc/include/jemalloc/internal/prof_stats.h
Normal file
17
BeefRT/JEMalloc/include/jemalloc/internal/prof_stats.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
#ifndef JEMALLOC_INTERNAL_PROF_STATS_H
|
||||
#define JEMALLOC_INTERNAL_PROF_STATS_H
|
||||
|
||||
typedef struct prof_stats_s prof_stats_t;
|
||||
struct prof_stats_s {
|
||||
uint64_t req_sum;
|
||||
uint64_t count;
|
||||
};
|
||||
|
||||
extern malloc_mutex_t prof_stats_mtx;
|
||||
|
||||
void prof_stats_inc(tsd_t *tsd, szind_t ind, size_t size);
|
||||
void prof_stats_dec(tsd_t *tsd, szind_t ind, size_t size);
|
||||
void prof_stats_get_live(tsd_t *tsd, szind_t ind, prof_stats_t *stats);
|
||||
void prof_stats_get_accum(tsd_t *tsd, szind_t ind, prof_stats_t *stats);
|
||||
|
||||
#endif /* JEMALLOC_INTERNAL_PROF_STATS_H */
|
Loading…
Add table
Add a link
Reference in a new issue