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

Function imp_pass_sink

tests/test_importance.c:587–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585static atomic_int g_saw_incr_importance = 0;
586static atomic_int g_saw_full_importance = 0;
587static void imp_pass_sink(const char *line) {
588 if (!line || !strstr(line, "pass.timing")) {
589 return;
590 }
591 if (strstr(line, "pass=incr_importance")) {
592 atomic_fetch_add_explicit(&g_saw_incr_importance, 1, memory_order_relaxed);
593 } else if (strstr(line, "pass=importance")) {
594 atomic_fetch_add_explicit(&g_saw_full_importance, 1, memory_order_relaxed);
595 }
596}
597
598/* End-to-end, on the incremental route that actually rehydrates the stored
599 * graph (LEGACY_PARTIAL — production's other incremental route, closure

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected