41e0b857be
Header files are now self-contained, which makes the relationships between the files clearer, and crucially allows LSP tools like `clangd` to function correctly in all of our header files. I have verified that the headers are self-contained (aside from the various Windows shims) by compiling them as if they were C files – in a follow-up commit I plan to add this to CI to ensure we don't regress on this front.
24 lines
662 B
C
24 lines
662 B
C
#ifndef JEMALLOC_INTERNAL_PROF_LOG_H
|
|
#define JEMALLOC_INTERNAL_PROF_LOG_H
|
|
|
|
#include "jemalloc/internal/jemalloc_preamble.h"
|
|
#include "jemalloc/internal/mutex.h"
|
|
|
|
extern malloc_mutex_t log_mtx;
|
|
|
|
void prof_try_log(tsd_t *tsd, size_t usize, prof_info_t *prof_info);
|
|
bool prof_log_init(tsd_t *tsdn);
|
|
|
|
/* Used in unit tests. */
|
|
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);
|
|
|
|
bool prof_log_start(tsdn_t *tsdn, const char *filename);
|
|
bool prof_log_stop(tsdn_t *tsdn);
|
|
|
|
#endif /* JEMALLOC_INTERNAL_PROF_LOG_H */
|