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