2020-04-01 00:42:11 +08:00
|
|
|
#ifndef JEMALLOC_INTERNAL_PROF_LOG_H
|
|
|
|
#define JEMALLOC_INTERNAL_PROF_LOG_H
|
2019-12-19 07:15:31 +08:00
|
|
|
|
|
|
|
#include "jemalloc/internal/mutex.h"
|
|
|
|
|
2019-12-21 02:38:05 +08:00
|
|
|
extern malloc_mutex_t log_mtx;
|
|
|
|
|
2019-12-19 07:15:31 +08:00
|
|
|
void prof_try_log(tsd_t *tsd, size_t usize, prof_info_t *prof_info);
|
|
|
|
bool prof_log_init(tsd_t *tsdn);
|
2020-06-18 00:57:54 +08:00
|
|
|
|
|
|
|
/* Used in unit tests. */
|
2019-12-19 07:15:31 +08:00
|
|
|
size_t prof_log_bt_count(void);
|
|
|
|
size_t prof_log_alloc_count(void);
|
|
|
|
size_t prof_log_thr_count(void);
|
|
|
|
bool prof_log_is_logging(void);
|
|
|
|
bool prof_log_rep_check(void);
|
|
|
|
void prof_log_dummy_set(bool new_value);
|
|
|
|
|
2020-04-04 01:26:03 +08:00
|
|
|
bool prof_log_start(tsdn_t *tsdn, const char *filename);
|
|
|
|
bool prof_log_stop(tsdn_t *tsdn);
|
|
|
|
|
2020-04-01 00:42:11 +08:00
|
|
|
#endif /* JEMALLOC_INTERNAL_PROF_LOG_H */
|