MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_mem_allocator_stats_log

Function cbm_mem_allocator_stats_log

src/foundation/mem.c:951–960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

949}
950
951void cbm_mem_allocator_stats_log(const char *tag) {
952 char enabled[CBM_SZ_16];
953 if (cbm_safe_getenv("CBM_MEM_ALLOCATOR_STATS", enabled, sizeof(enabled), NULL) == NULL) {
954 return;
955 }
956 if (enabled[0] == '0' && enabled[1] == '\0') {
957 return;
958 }
959 mi_stats_print_out(mem_allocator_stats_line, (void *)(tag ? tag : "-"));
960}
961
962void cbm_mem_phase_mark(const char *label) {
963 cbm_memev_phase(label); /* waste sanitizer: dormant unless CBM_MEMWASTE=1 */

Callers 1

log_phase_memFunction · 0.85

Calls 1

cbm_safe_getenvFunction · 0.85

Tested by

no test coverage detected