diff options
author | Jens Axboe <axboe@kernel.dk> | 2014-09-16 17:35:55 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2014-09-16 17:35:55 +0200 |
commit | 1a8cad44cf3a1078411b36e97ca5dd37a0dcbd70 (patch) | |
tree | e0a4f6b9b1787a8a6005c6db34cbf9f2cd770e47 /t/btrace2fio.c | |
parent | a5f29b4aaa7fc75a36e10928f723186a3ef4368c (diff) | |
download | fio-1a8cad44cf3a1078411b36e97ca5dd37a0dcbd70.tar.gz fio-1a8cad44cf3a1078411b36e97ca5dd37a0dcbd70.tar.bz2 |
btrace2fio: set runtime
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 't/btrace2fio.c')
-rw-r--r-- | t/btrace2fio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/btrace2fio.c b/t/btrace2fio.c index ef02c692..c88c0509 100644 --- a/t/btrace2fio.c +++ b/t/btrace2fio.c @@ -532,6 +532,7 @@ static int __output_p_fio(struct btrace_pid *p, unsigned long *ios) { struct btrace_out *o = &p->o; unsigned long total; + unsigned long long time; float perc; int i, j; @@ -585,6 +586,10 @@ static int __output_p_fio(struct btrace_pid *p, unsigned long *ios) printf("startdelay=%llus\n", o->start_delay / 1000000ULL); + time = o->last_ttime - o->first_ttime; + time = (time + 1000000000ULL - 1) / 1000000000ULL; + printf("runtime=%llus\n", time); + printf("bssplit="); for (i = 0; i < DDIR_RWDIR_CNT; i++) { |