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

Function cbm_mem_phase_reset

src/foundation/mem.c:994–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

992}
993
994void cbm_mem_phase_reset(void) {
995 if (!mem_phase_enabled()) {
996 return;
997 }
998 cbm_mutex_lock(&g_mem_phase_mutex);
999 memset(g_mem_phases, 0, sizeof(g_mem_phases));
1000 g_mem_phase_count = 0;
1001 g_mem_phase_open = NULL;
1002 g_mem_phase_baseline = mem_phase_committed();
1003 cbm_mutex_unlock(&g_mem_phase_mutex);
1004}
1005
1006int cbm_mem_phase_report_json(char *out, size_t size) {
1007 if (!out || size == 0) {

Callers 1

cbm_pipeline_runFunction · 0.85

Calls 4

mem_phase_enabledFunction · 0.85
cbm_mutex_lockFunction · 0.85
mem_phase_committedFunction · 0.85
cbm_mutex_unlockFunction · 0.85

Tested by

no test coverage detected