1 | #ifndef JEMALLOC_INTERNAL_PROF_LOG_H |
---|---|
2 | #define JEMALLOC_INTERNAL_PROF_LOG_H |
3 | |
4 | #include "jemalloc/internal/mutex.h" |
5 | |
6 | extern malloc_mutex_t log_mtx; |
7 | |
8 | void prof_try_log(tsd_t *tsd, size_t usize, prof_info_t *prof_info); |
9 | bool prof_log_init(tsd_t *tsdn); |
10 | |
11 | /* Used in unit tests. */ |
12 | size_t prof_log_bt_count(void); |
13 | size_t prof_log_alloc_count(void); |
14 | size_t prof_log_thr_count(void); |
15 | bool prof_log_is_logging(void); |
16 | bool prof_log_rep_check(void); |
17 | void prof_log_dummy_set(bool new_value); |
18 | |
19 | bool prof_log_start(tsdn_t *tsdn, const char *filename); |
20 | bool prof_log_stop(tsdn_t *tsdn); |
21 | |
22 | #endif /* JEMALLOC_INTERNAL_PROF_LOG_H */ |
23 |