Handle gbuf.dump event — capture node/edge counts. */
| 141 | |
| 142 | /* Handle gbuf.dump event — capture node/edge counts. */ |
| 143 | static void on_gbuf_dump(const char *line) { |
| 144 | char n[CBM_SZ_32] = {0}; |
| 145 | char e[CBM_SZ_32] = {0}; |
| 146 | if (extract_kv(line, "nodes", n, (int)sizeof(n))) { |
| 147 | s_gbuf_nodes = (int)strtol(n, NULL, CBM_DECIMAL_BASE); |
| 148 | } |
| 149 | if (extract_kv(line, "edges", e, (int)sizeof(e))) { |
| 150 | s_gbuf_edges = (int)strtol(e, NULL, CBM_DECIMAL_BASE); |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | /* Handle pipeline.done event. */ |
| 155 | static void on_done(const char *line) { |
nothing calls this directly
no test coverage detected