[Darshan-commits] [Git][darshan/darshan][master] 2 commits: Update darshan-job-summary.pl.in

Shane Snyder xgitlab at cels.anl.gov
Tue Dec 19 15:24:10 CST 2017


Shane Snyder pushed to branch master at darshan / darshan


Commits:
5fd87b0b by Thomas Applencourt at 2017-12-14T16:26:57-06:00
Update darshan-job-summary.pl.in
- - - - -
61a1fa01 by Shane Snyder at 2017-12-19T15:24:08-06:00
Merge branch 'master' into 'master'

Update darshan-job-summary.pl.in

See merge request darshan/darshan!17
- - - - -


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
@@ -32,6 +32,7 @@ my $gnuplot        = "gnuplot";
 my $orig_dir = getcwd;
 my $output_file = "summary.pdf";
 my $verbose_flag = 0;
+my $summary_flag = 0;
 my $input_file = "";
 my %posix_access_hash = ();
 my %mpiio_access_hash = ();
@@ -989,6 +990,12 @@ my $tmp_total_time = $slowest_uniq_time+$shared_file_time;
 print("Total absolute I/O time: $tmp_total_time\n");
 print("**NOTE: above shared and unique file times calculated using MPI-IO timers if MPI-IO interface used on a given file, POSIX timers otherwise.\n");
 
+#Exit here if user ask only for a summary
+if ($summary_flag)
+{
+        exit(0);
+}
+
 # move to tmp_dir
 chdir $tmp_dir;
 
@@ -1486,12 +1493,13 @@ sub process_file_record
 
 sub process_args
 {
-    use vars qw( $opt_help $opt_output $opt_verbose );
+    use vars qw( $opt_help $opt_output $opt_verbose $opt_summary);
 
     Getopt::Long::Configure("no_ignore_case", "bundling");
     GetOptions( "help",
         "output=s",
-        "verbose");
+        "verbose",
+        "summary");
 
     if($opt_help)
     {
@@ -1509,6 +1517,11 @@ sub process_args
         $verbose_flag = $opt_verbose;
     }
 
+    if($opt_summary)
+    {
+        $summary_flag = $opt_summary;
+    }
+    
     # there should only be one remaining argument: the input file 
     if($#ARGV != 0)
     {
@@ -1611,6 +1624,7 @@ Usage: $PROGRAM_NAME <options> input_file
     --help          Prints this help message
     --output        Specifies a file to write pdf output to
                     (defaults to ./summary.pdf)
+    --summary       Print a very succinct I/O timing summary and exit
     --verbose       Prints and retains tmpdir used for LaTeX output
 
 Purpose:



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/compare/5ff6955f5d03ea0fbd14a4f82c0a8d72ad42a1ec...61a1fa010be06a12e258d81715e8f1406e5ffec8

---
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/compare/5ff6955f5d03ea0fbd14a4f82c0a8d72ad42a1ec...61a1fa010be06a12e258d81715e8f1406e5ffec8
You're receiving this email because of your account on xgitlab.cels.anl.gov.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20171219/913e577e/attachment-0001.html>


More information about the Darshan-commits mailing list