[Darshan-commits] [Git][darshan/darshan][dev-stdio-utils] include stdio in time chart

Philip Carns xgitlab at cels.anl.gov
Thu Jul 7 20:26:31 CDT 2016


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


Commits:
4611214c by Phil Carns at 2016-07-07T21:26:18-04:00
include stdio in time chart

- - - - -


1 changed file:

- darshan-util/darshan-job-summary/bin/darshan-job-summary.pl.in


Changes:

=====================================
darshan-util/darshan-job-summary/bin/darshan-job-summary.pl.in
=====================================
--- a/darshan-util/darshan-job-summary/bin/darshan-job-summary.pl.in
+++ b/darshan-util/darshan-job-summary/bin/darshan-job-summary.pl.in
@@ -393,12 +393,15 @@ system "$cp $PREFIX/share/*.tex $tmp_dir/";
 # summary of time spent in POSIX & MPI-IO functions
 open(TIME_SUMMARY, ">$tmp_dir/time-summary.dat") || die("error opening output file:$!\n");
 print TIME_SUMMARY "# <type>, <app time>, <read>, <write>, <meta>\n";
-print TIME_SUMMARY "POSIX, ", ((($runtime * $nprocs - $summary{POSIX_F_READ_TIME} -
-    $summary{POSIX_F_WRITE_TIME} -
-    $summary{POSIX_F_META_TIME})/($runtime * $nprocs)) * 100);
-print TIME_SUMMARY ", ", (($summary{POSIX_F_READ_TIME}/($runtime * $nprocs))*100);
-print TIME_SUMMARY ", ", (($summary{POSIX_F_WRITE_TIME}/($runtime * $nprocs))*100);
-print TIME_SUMMARY ", ", (($summary{POSIX_F_META_TIME}/($runtime * $nprocs))*100), "\n";
+if (defined $summary{POSIX_OPENS})
+{
+    print TIME_SUMMARY "POSIX, ", ((($runtime * $nprocs - $summary{POSIX_F_READ_TIME} -
+        $summary{POSIX_F_WRITE_TIME} -
+        $summary{POSIX_F_META_TIME})/($runtime * $nprocs)) * 100);
+    print TIME_SUMMARY ", ", (($summary{POSIX_F_READ_TIME}/($runtime * $nprocs))*100);
+    print TIME_SUMMARY ", ", (($summary{POSIX_F_WRITE_TIME}/($runtime * $nprocs))*100);
+    print TIME_SUMMARY ", ", (($summary{POSIX_F_META_TIME}/($runtime * $nprocs))*100), "\n";
+}
 if (defined $summary{MPIIO_INDEP_OPENS})
 {
     print TIME_SUMMARY "MPI-IO, ", ((($runtime * $nprocs - $summary{MPIIO_F_READ_TIME} -
@@ -408,6 +411,15 @@ if (defined $summary{MPIIO_INDEP_OPENS})
     print TIME_SUMMARY ", ", (($summary{MPIIO_F_WRITE_TIME}/($runtime * $nprocs))*100);
     print TIME_SUMMARY ", ", (($summary{MPIIO_F_META_TIME}/($runtime * $nprocs))*100), "\n";
 }
+if (defined $summary{STDIO_OPENS})
+{
+    print TIME_SUMMARY "STDIO, ", ((($runtime * $nprocs - $summary{STDIO_F_READ_TIME} -
+        $summary{STDIO_F_WRITE_TIME} -
+        $summary{STDIO_F_META_TIME})/($runtime * $nprocs)) * 100);
+    print TIME_SUMMARY ", ", (($summary{STDIO_F_READ_TIME}/($runtime * $nprocs))*100);
+    print TIME_SUMMARY ", ", (($summary{STDIO_F_WRITE_TIME}/($runtime * $nprocs))*100);
+    print TIME_SUMMARY ", ", (($summary{STDIO_F_META_TIME}/($runtime * $nprocs))*100), "\n";
+}
 close TIME_SUMMARY;
 
 # counts of operations



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


More information about the Darshan-commits mailing list