mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-22 16:06:30 -05:00
Report detailed timing for content write stages
This commit is contained in:
parent
fde8de1641
commit
b8b41c55be
2 changed files with 37 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue