fio: add job_runtime to the thread json output
authorJosef Bacik <josef@toxicpanda.com>
Fri, 29 Jun 2018 13:49:03 +0000 (09:49 -0400)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 Jun 2018 13:51:14 +0000 (07:51 -0600)
commitbcbb4c6c975149606720a850eb95e5bf17c567d2
tree95aee38deb9362422bcb685e722697f166a39c0d
parentc3dc516ad75eb7a1596def3473cdc3882a55d166
fio: add job_runtime to the thread json output

I discovered that the 'elapsed' value of each job is the overall time
the whole fio run took, not the per-job elapsed time, despite it being
in the per-job section of the json output.  Rather than break everybody
by fixing this, just add a 'job_runtime' value to the job section and
include the time the thread ran in milliseconds.  This is handy for jobs
that want to compare runtime of two threads in different cgroups.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
stat.c