X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=stat.c;h=7e2feea25bc907ee41bf776bd4053ebfa01112bc;hp=5cc6b7b91417f13a6416da4844a7bbfa4e9230d0;hb=f2a2ce0eedb44eaa8689e4cbfa77c79b1751b216;hpb=771e58befea806d2d881953050c4e65329eee382;ds=sidebyside diff --git a/stat.c b/stat.c index 5cc6b7b9..7e2feea2 100644 --- a/stat.c +++ b/stat.c @@ -12,6 +12,7 @@ #include "lib/ieee754.h" #include "json.h" #include "lib/getrusage.h" +#include "idletime.h" void update_rusage_stat(struct thread_data *td) { @@ -1335,6 +1336,8 @@ void show_run_stats(void) /* disk util stats, if any */ show_disk_util(1, root); + show_idle_prof_stats(FIO_OUTPUT_JSON, root); + json_print_object(root); log_info("\n"); json_free_object(root); @@ -1355,6 +1358,8 @@ void show_run_stats(void) else if (output_format == FIO_OUTPUT_NORMAL) show_disk_util(0, NULL); + show_idle_prof_stats(FIO_OUTPUT_NORMAL, NULL); + free(runstats); free(threadstats); }