Handle pass.timing event. */
| 339 | |
| 340 | /* Handle pass.timing event. */ |
| 341 | static void on_pass_timing(const char *line) { |
| 342 | char val[CBM_SZ_64] = {0}; |
| 343 | const char *pass = extract_kv(line, "pass", val, (int)sizeof(val)); |
| 344 | if (!pass) { |
| 345 | return; |
| 346 | } |
| 347 | flush_carriage(); |
| 348 | for (int i = 0; i < PHASE_COUNT; i++) { |
| 349 | if (strcmp(pass, phases[i].pass) == 0) { |
| 350 | (void)fprintf(s_out, "%s\n", phases[i].label); |
| 351 | (void)fflush(s_out); |
| 352 | return; |
| 353 | } |
| 354 | } |
| 355 | } |
| 356 | |
| 357 | /* Handle gbuf.dump event — capture node/edge counts. */ |
| 358 | static void on_gbuf_dump(const char *line) { |
nothing calls this directly
no test coverage detected