MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / je_malloc_stats_print

Function je_malloc_stats_print

deps/jemalloc/src/jemalloc.c:3707–3719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3705}
3706
3707JEMALLOC_EXPORT void JEMALLOC_NOTHROW
3708je_malloc_stats_print(void (*write_cb)(void *, const char *), void *cbopaque,
3709 const char *opts) {
3710 tsdn_t *tsdn;
3711
3712 LOG("core.malloc_stats_print.entry", "");
3713
3714 tsdn = tsdn_fetch();
3715 check_entry_exit_locking(tsdn);
3716 stats_print(write_cb, cbopaque, opts);
3717 check_entry_exit_locking(tsdn);
3718 LOG("core.malloc_stats_print.exit", "");
3719}
3720
3721JEMALLOC_EXPORT size_t JEMALLOC_NOTHROW
3722je_malloc_usable_size(JEMALLOC_USABLE_SIZE_CONST void *ptr) {

Callers 2

stats_print_atexitFunction · 0.70
test_threadsFunction · 0.50

Calls 3

check_entry_exit_lockingFunction · 0.70
stats_printFunction · 0.70
tsdn_fetchFunction · 0.50

Tested by 1

test_threadsFunction · 0.40