Report detailed timing for content write stages

This commit is contained in:
Andrea Mazzoleni 2026-09-09 19:21:42 +02:00
parent fde8de1641
commit b8b41c55be
2 changed files with 37 additions and 1 deletions

View file

@ -817,6 +817,9 @@ int ssync(STREAM* s)
for (i = 0; i < s->handle_size; ++i) {
int ret;
uint64_t start;
start = os_tick_ms();
/*
* On macOS, standard fsync() only pushes data from kernel buffers to the
@ -837,6 +840,8 @@ int ssync(STREAM* s)
return -1;
/* LCOV_EXCL_STOP */
}
msg_progress("Synced %s in %" PRIu64 " ms\n", s->handle[i].path, os_tick_ms() - start);
}
return 0;