| 549 | } |
| 550 | |
| 551 | void update_benchmark(const char *fmt, ...) |
| 552 | { |
| 553 | if (do_benchmark_all) { |
| 554 | BenchmarkTimeStamps t = get_benchmark_time_stamps(); |
| 555 | va_list va; |
| 556 | char buf[1024]; |
| 557 | |
| 558 | if (fmt) { |
| 559 | va_start(va, fmt); |
| 560 | vsnprintf(buf, sizeof(buf), fmt, va); |
| 561 | va_end(va); |
| 562 | av_log(NULL, AV_LOG_INFO, |
| 563 | "bench: %8" PRIu64 " user %8" PRIu64 " sys %8" PRIu64 " real %s \n", |
| 564 | t.user_usec - current_time.user_usec, |
| 565 | t.sys_usec - current_time.sys_usec, |
| 566 | t.real_usec - current_time.real_usec, buf); |
| 567 | } |
| 568 | current_time = t; |
| 569 | } |
| 570 | } |
| 571 | |
| 572 | static void print_report(int is_last_report, int64_t timer_start, int64_t cur_time, int64_t pts) |
| 573 | { |
no test coverage detected