Adding number of tasks to the CSV output

master
efajardo 2021-04-20 15:38:04 -07:00
parent 0a4d58576d
commit 39fcb5970d
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,7 @@ void PrintTableHeader(){
fprintf(out_resultfile, "access bw(MiB/s) IOPS Latency(s) block(KiB) xfer(KiB) open(s) wr/rd(s) close(s) total(s) iter\n");
fprintf(out_resultfile, "------ --------- ---- ---------- ---------- --------- -------- -------- -------- -------- ----\n");
}else if(outputFormat == OUTPUT_CSV){
fprintf(out_resultfile, "access,bw(MiB/s),IOPS,Latency,block(KiB),xfer(KiB),open(s),wr/rd(s),close(s),total(s),iter\n");
fprintf(out_resultfile, "access,bw(MiB/s),IOPS,Latency,block(KiB),xfer(KiB),open(s),wr/rd(s),close(s),total(s),numTasks,iter\n");
}
}
@ -260,6 +260,7 @@ void PrintReducedResult(IOR_test_t *test, int access, double bw, double iops, do
PrintKeyValDouble("wrRdTime", diff_subset[1]);
PrintKeyValDouble("closeTime", diff_subset[2]);
PrintKeyValDouble("totalTime", totalTime);
PrintKeyValInt("Numtasks", test->params.numTasks);
fprintf(out_resultfile, "%d\n", rep);
}