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

Function cp_diag

tests/test_convergence_probe.c:287–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285 "TRPC_CALLS", "USAGE", "ASYNC_CALLS", "WRITES", NULL};
286
287static void cp_diag(cbm_store_t *store, const char *project, const char *label) {
288 if (!store) { fprintf(stderr, " [CP] %s: no graph DB\n", label); return; }
289 char line[640] = {0};
290 for (int i = 0; CP_ALL_EDGE_TYPES[i]; i++) {
291 int c = cbm_store_count_edges_by_type(store, project, CP_ALL_EDGE_TYPES[i]);
292 if (c > 0 && strlen(line) < sizeof(line) - 48) {
293 char one[56];
294 snprintf(one, sizeof(one), "%s=%d ", CP_ALL_EDGE_TYPES[i], c);
295 strncat(line, one, sizeof(line) - strlen(line) - 1);
296 }
297 }
298 fprintf(stderr, " [CP] %s edges=[%s]\n", label, line[0] ? line : "(none)");
299}
300
301/* Helper: index N meaningful files plus enough Python pad files to force
302 * the parallel pipeline path (MIN_FILES_FOR_PARALLEL = 50). */

Callers 1

Calls 1

Tested by

no test coverage detected