Handle gbuf.dump event — capture node/edge counts. */
| 356 | |
| 357 | /* Handle gbuf.dump event — capture node/edge counts. */ |
| 358 | static void on_gbuf_dump(const char *line) { |
| 359 | char n[CBM_SZ_32] = {0}; |
| 360 | char e[CBM_SZ_32] = {0}; |
| 361 | if (extract_kv(line, "nodes", n, (int)sizeof(n))) { |
| 362 | s_gbuf_nodes = (int)strtol(n, NULL, CBM_DECIMAL_BASE); |
| 363 | } |
| 364 | if (extract_kv(line, "edges", e, (int)sizeof(e))) { |
| 365 | s_gbuf_edges = (int)strtol(e, NULL, CBM_DECIMAL_BASE); |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | /* Handle pipeline.done event. */ |
| 370 | static void on_done(const char *line) { |
nothing calls this directly
no test coverage detected