Move getrusage() out of thread_stat
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/fio.h b/fio.h
index 12b3e3d..d540645 100644
--- a/fio.h
+++ b/fio.h
@@ -192,8 +192,6 @@
/*
* fio system usage accounting
*/
- struct rusage ru_start;
- struct rusage ru_end;
uint64_t usr_time;
uint64_t sys_time;
uint64_t ctx;
@@ -432,6 +430,9 @@
uint64_t stat_io_bytes[2];
struct timeval stat_sample_time[2];
+ struct rusage ru_start;
+ struct rusage ru_end;
+
struct fio_file **files;
unsigned int files_size;
unsigned int files_index;