Commit 357cdb6d authored by Philip Carns's avatar Philip Carns

modify darshan-job-summary.pl to use darshan-parser directly


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@264 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 47c52648
......@@ -29,7 +29,19 @@ my %hash_files = ();
process_args();
open(TRACE, $input_file) || die("can't open $input_file for processing: $!\n");
# find a darshan-parser executable somewhere
my $darshan_parser = "";
if(-x "$FindBin::Bin/../bin/darshan-parser")
{
$darshan_parser = "$FindBin::Bin/../bin/darshan-parser";
}
else
{
$darshan_parser = "darshan-parser";
}
open(TRACE, "$darshan_parser $input_file |") || die("Can't execute \"$darshan_parser $input_file\": $!\n");
open(FA_READ, ">$tmp_dir/file-access-read.dat") || die("error opening output file: $!\n");
open(FA_WRITE, ">$tmp_dir/file-access-write.dat") || die("error opening output file: $!\n");
open(FA_READ_SH, ">$tmp_dir/file-access-read-sh.dat") || die("error opening output file: $!\n");
......@@ -225,7 +237,7 @@ while ($line = <TRACE>) {
# process last file record
process_file_record($current_rank, $current_hash, \%file_record_hash);
close(TRACE);
close(TRACE) || die "darshan-parser failure: $! $?";
# Fudge one point at the end to make xrange match in read and write plots.
# For some reason I can't get the xrange command to work. -Phil
......@@ -950,9 +962,8 @@ Usage: $PROGRAM_NAME <options> input_file
(defaults to ./summary.pdf)
Purpose:
This script reads a Darshan output file in text format (as
produced by the darshan-parser utility) and generates a pdf file
summarizing job behavior.
This script reads a Darshan output file generated by a job and
generates a pdf file summarizing job behavior.
EOF
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment