projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for idletime profiling
[fio.git]
/
stat.c
diff --git
a/stat.c
b/stat.c
index 5cc6b7b91417f13a6416da4844a7bbfa4e9230d0..7e2feea25bc907ee41bf776bd4053ebfa01112bc 100644
(file)
--- a/
stat.c
+++ b/
stat.c
@@
-12,6
+12,7
@@
#include "lib/ieee754.h"
#include "json.h"
#include "lib/getrusage.h"
#include "lib/ieee754.h"
#include "json.h"
#include "lib/getrusage.h"
+#include "idletime.h"
void update_rusage_stat(struct thread_data *td)
{
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);
/* 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);
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);
else if (output_format == FIO_OUTPUT_NORMAL)
show_disk_util(0, NULL);
+ show_idle_prof_stats(FIO_OUTPUT_NORMAL, NULL);
+
free(runstats);
free(threadstats);
}
free(runstats);
free(threadstats);
}