Skip to content

Commit

Permalink
stat: Show number of DDIR_SYNC samples
Browse files Browse the repository at this point in the history
This patch shows numbe rof fsync/fdatasync/sync_file_range samples in
the summary stat.

Signed-off-by: Minwoo Im <[email protected]>
  • Loading branch information
minwooim committed Jun 22, 2024
1 parent 8dfaf60 commit 0331123
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,8 @@ static void show_ddir_status(struct group_run_stats *rs, struct thread_stat *ts,

if (ddir_sync(ddir)) {
if (calc_lat(&ts->sync_stat, &min, &max, &mean, &dev)) {
log_buf(out, " %s:\n", "fsync/fdatasync/sync_file_range");
log_buf(out, " %s: %lu\n", "fsync/fdatasync/sync_file_range",
ts->sync_stat.samples);
display_lat(io_ddir_name(ddir), min, max, mean, dev, out);
show_clat_percentiles(ts->io_u_sync_plat,
ts->sync_stat.samples,
Expand Down

0 comments on commit 0331123

Please sign in to comment.