Handle gbuf.dump event — capture node/edge counts. */
| 279 | |
| 280 | /* Handle gbuf.dump event — capture node/edge counts. */ |
| 281 | static void on_gbuf_dump(const char *line) { |
| 282 | char n[CBM_SZ_32] = {0}; |
| 283 | char e[CBM_SZ_32] = {0}; |
| 284 | if (extract_kv(line, "nodes", n, (int)sizeof(n))) { |
| 285 | s_gbuf_nodes = (int)strtol(n, NULL, CBM_DECIMAL_BASE); |
| 286 | } |
| 287 | if (extract_kv(line, "edges", e, (int)sizeof(e))) { |
| 288 | s_gbuf_edges = (int)strtol(e, NULL, CBM_DECIMAL_BASE); |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | /* Handle pipeline.done event. */ |
| 293 | static void on_done(const char *line) { |
nothing calls this directly
no test coverage detected