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

Function cbm_reset_profile

internal/cbm/cbm.c:108–115  ·  view source on GitHub ↗

cbm_reset_profile zeros the profiling counters.

Source from the content-addressed store, hash-verified

106
107// cbm_reset_profile zeros the profiling counters.
108void cbm_reset_profile(void) {
109 atomic_store(&total_parse_ns, 0);
110 atomic_store(&total_extract_ns, 0);
111 atomic_store(&total_lsp_ns, 0);
112 atomic_store(&total_preprocess_ns, 0);
113 atomic_store(&total_files_preprocessed, 0);
114 atomic_store(&total_files, 0);
115}
116
117/* New facts use checked allocation and atomic publication; legacy extraction
118 * arrays retain their existing contracts. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected