Commit a791e4a5 authored by Philip Carns's avatar Philip Carns

add disclaimer to file size table if files were not stat'ed at open time


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@616 3b7491f3-a168-0410-bf4b-c445ed680a29
parent e6f8e9d4
...@@ -44,6 +44,7 @@ my $input_file = ""; ...@@ -44,6 +44,7 @@ my $input_file = "";
my %access_hash = (); my %access_hash = ();
my @access_size = (); my @access_size = ();
my %hash_files = (); my %hash_files = ();
my $size_est_flag = 0;
# data structures for calculating performance # data structures for calculating performance
my %hash_unique_file_time = (); my %hash_unique_file_time = ();
...@@ -507,6 +508,14 @@ print TABLES " ...@@ -507,6 +508,14 @@ print TABLES "
\\begin{tabular}{r|r|r|r} \\begin{tabular}{r|r|r|r}
\\multicolumn{4}{c}{ } \\\\ \\multicolumn{4}{c}{ } \\\\
\\multicolumn{4}{c}{File Count Summary} \\\\ \\multicolumn{4}{c}{File Count Summary} \\\\
";
if($size_est_flag == 1)
{
print TABLES "
\\multicolumn{4}{c}{(estimated by I/O access offsets)} \\\\
";
}
print TABLES "
\\hline \\hline
type \& number of files \& avg. size \& max size \\\\ type \& number of files \& avg. size \& max size \\\\
\\hline \\hline
...@@ -1035,8 +1044,19 @@ sub process_file_record ...@@ -1035,8 +1044,19 @@ sub process_file_record
$hash_files{$hash}{'min_open_size'} > $hash_files{$hash}{'min_open_size'} >
$file_record{'CP_SIZE_AT_OPEN'}) $file_record{'CP_SIZE_AT_OPEN'})
{ {
$hash_files{$hash}{'min_open_size'} = # size at open will be set to -1 if the darshan library was not
$file_record{'CP_SIZE_AT_OPEN'}; # configured to stat files at open time
if($file_record{'CP_SIZE_AT_OPEN'} < 0)
{
$hash_files{$hash}{'min_open_size'} = 0;
# set flag indicating that file sizes are estimated
$size_est_flag = 1;
}
else
{
$hash_files{$hash}{'min_open_size'} =
$file_record{'CP_SIZE_AT_OPEN'};
}
} }
# record largest size that the file reached at any rank # record largest size that the file reached at any rank
......
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