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

Function cbm_memev_da_note

src/foundation/mem_events.c:1344–1355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1342}
1343
1344__attribute__((noinline)) void cbm_memev_da_note(size_t cap_bytes, size_t used_bytes,
1345 size_t cap_slots) {
1346 if (!cbm_memev_enabled() || cap_bytes == 0) {
1347 return;
1348 }
1349 uint64_t growths = 0;
1350 for (size_t c = 8; c < cap_slots; c <<= 1) {
1351 growths++;
1352 }
1353 cbm_work_note(CBM_WORK_CT_DYN_ARRAY, __builtin_return_address(0), cap_bytes, used_bytes,
1354 growths);
1355}
1356
1357/* FNV-1a over the first bytes of a string of known length; the length is
1358 * mixed in, so two strings that share a long prefix still differ. */

Callers

nothing calls this directly

Calls 2

cbm_memev_enabledFunction · 0.85
cbm_work_noteFunction · 0.85

Tested by

no test coverage detected