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

Function cbm_mem_phase_reset

src/foundation/mem.c:752–762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

750}
751
752void cbm_mem_phase_reset(void) {
753 if (!mem_phase_enabled()) {
754 return;
755 }
756 cbm_mutex_lock(&g_mem_phase_mutex);
757 memset(g_mem_phases, 0, sizeof(g_mem_phases));
758 g_mem_phase_count = 0;
759 g_mem_phase_open = NULL;
760 g_mem_phase_baseline = mem_phase_committed();
761 cbm_mutex_unlock(&g_mem_phase_mutex);
762}
763
764int cbm_mem_phase_report_json(char *out, size_t size) {
765 if (!out || size == 0) {

Callers

nothing calls this directly

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