[Darshan-commits] [Git][darshan/darshan][dev-stdio-utils] implement parser --total mode for stdio

Philip Carns xgitlab at cels.anl.gov
Sun Sep 18 13:41:53 CDT 2016


Philip Carns pushed to branch dev-stdio-utils at darshan / darshan


Commits:
ddb55a27 by Phil Carns at 2016-09-18T14:41:40-04:00
implement parser --total mode for stdio

- - - - -


1 changed file:

- darshan-util/darshan-parser.c


Changes:

=====================================
darshan-util/darshan-parser.c
=====================================
--- a/darshan-util/darshan-parser.c
+++ b/darshan-util/darshan-parser.c
@@ -117,6 +117,7 @@ void stdio_accum_perf(struct darshan_stdio_file *pfile, perf_data_t *pdata);
 void stdio_accum_file(struct darshan_stdio_file *pfile, hash_entry_t *hfile, int64_t nprocs);
 void stdio_calc_file(hash_entry_t *file_hash, file_data_t *fdata);
 void stdio_file_list(hash_entry_t *file_hash, struct darshan_name_record_ref *name_hash, int detail_flag);
+void stdio_print_total_file(struct darshan_stdio_file *pfile);
 
 void calc_perf(perf_data_t *pdata, int64_t nprocs);
 
@@ -549,6 +550,10 @@ int main(int argc, char **argv)
             {
                 mpiio_print_total_file((struct darshan_mpiio_file*)total.rec_dat);
             }
+            else if(i == DARSHAN_STDIO_MOD)
+            {
+                stdio_print_total_file((struct darshan_stdio_file*)total.rec_dat);
+            }
         }
 
         /* File Calc */
@@ -1674,6 +1679,23 @@ void calc_perf(perf_data_t *pdata,
     return;
 }
 
+void stdio_print_total_file(struct darshan_stdio_file *pfile)
+{
+    int i;
+    printf("\n");
+    for(i = 0; i < STDIO_NUM_INDICES; i++)
+    {
+        printf("total_%s: %"PRId64"\n",
+            stdio_counter_names[i], pfile->counters[i]);
+    }
+    for(i = 0; i < STDIO_F_NUM_INDICES; i++)
+    {
+        printf("total_%s: %lf\n",
+            stdio_f_counter_names[i], pfile->fcounters[i]);
+    }
+    return;
+}
+
 void posix_print_total_file(struct darshan_posix_file *pfile)
 {
     int i;



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/ddb55a27c53a2dca4507908ea006b7b4dcc888ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20160918/cfa50823/attachment-0001.html>


More information about the Darshan-commits mailing list