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

Function count_live_nodes

src/graph_buffer/graph_buffer.c:2476–2485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2474}
2475
2476static int count_live_nodes(cbm_gbuf_t *gb) {
2477 int count = 0;
2478 for (int i = 0; i < gb->nodes.count; i++) {
2479 cbm_gbuf_node_t *n = gb->nodes.items[i];
2480 if (n->qualified_name && cbm_ht_get(gb->node_by_qn, n->qualified_name)) {
2481 count++;
2482 }
2483 }
2484 return count;
2485}
2486
2487static void generate_iso_timestamp(char *buf, size_t buf_size) {
2488 time_t now = time(NULL);

Callers 1

cbm_gbuf_dump_to_sqliteFunction · 0.85

Calls 1

cbm_ht_getFunction · 0.85

Tested by

no test coverage detected