| 949 | } |
| 950 | |
| 951 | void 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 | |
| 962 | void cbm_mem_phase_mark(const char *label) { |
| 963 | cbm_memev_phase(label); /* waste sanitizer: dormant unless CBM_MEMWASTE=1 */ |
no test coverage detected