From f5ec81235eaf21bd3a97556427d4a84e48a87e54 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 25 Jan 2018 16:04:20 -0700 Subject: [PATCH] stat: add total fsync ios to json output Signed-off-by: Jens Axboe --- stat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/stat.c b/stat.c index 36e06457..a980a1d2 100644 --- a/stat.c +++ b/stat.c @@ -1049,6 +1049,7 @@ static void add_ddir_status_json(struct thread_stat *ts, tmp_object = json_create_object(); json_object_add_value_object(dir_object, "lat_ns", tmp_object); + json_object_add_value_int(dir_object, "total_ios", ts->total_io_u[DDIR_SYNC]); json_object_add_value_int(tmp_object, "min", min); json_object_add_value_int(tmp_object, "max", max); json_object_add_value_float(tmp_object, "mean", mean); -- 2.25.1