| 285 | "TRPC_CALLS", "USAGE", "ASYNC_CALLS", "WRITES", NULL}; |
| 286 | |
| 287 | static 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). */ |
no test coverage detected