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

Function count_live_nodes

src/graph_buffer/graph_buffer.c:1581–1590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1579}
1580
1581static int count_live_nodes(cbm_gbuf_t *gb) {
1582 int count = 0;
1583 for (int i = 0; i < gb->nodes.count; i++) {
1584 cbm_gbuf_node_t *n = gb->nodes.items[i];
1585 if (n->qualified_name && cbm_ht_get(gb->node_by_qn, n->qualified_name)) {
1586 count++;
1587 }
1588 }
1589 return count;
1590}
1591
1592static void generate_iso_timestamp(char *buf, size_t buf_size) {
1593 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