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

Function cp_diag

tests/test_convergence_probe.c:309–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307 NULL};
308
309static void cp_diag(cbm_store_t *store, const char *project, const char *label) {
310 if (!store) { fprintf(stderr, " [CP] %s: no graph DB\n", label); return; }
311 char line[640] = {0};
312 for (int i = 0; CP_ALL_EDGE_TYPES[i]; i++) {
313 int c = cbm_store_count_edges_by_type(store, project, CP_ALL_EDGE_TYPES[i]);
314 if (c > 0 && strlen(line) < sizeof(line) - 48) {
315 char one[56];
316 snprintf(one, sizeof(one), "%s=%d ", CP_ALL_EDGE_TYPES[i], c);
317 strncat(line, one, sizeof(line) - strlen(line) - 1);
318 }
319 }
320 fprintf(stderr, " [CP] %s edges=[%s]\n", label, line[0] ? line : "(none)");
321}
322
323/* Helper: index N meaningful files plus enough Python pad files to force
324 * the parallel pipeline path (MIN_FILES_FOR_PARALLEL = 50). */

Callers 1

Calls 1

Tested by

no test coverage detected