Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
darshan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
71
Issues
71
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
darshan
darshan
Commits
ddb55a27
Commit
ddb55a27
authored
Sep 18, 2016
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement parser --total mode for stdio
parent
cb7397ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
darshan-util/darshan-parser.c
darshan-util/darshan-parser.c
+22
-0
No files found.
darshan-util/darshan-parser.c
View file @
ddb55a27
...
@@ -117,6 +117,7 @@ void stdio_accum_perf(struct darshan_stdio_file *pfile, perf_data_t *pdata);
...
@@ -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_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_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_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
);
void
calc_perf
(
perf_data_t
*
pdata
,
int64_t
nprocs
);
...
@@ -549,6 +550,10 @@ int main(int argc, char **argv)
...
@@ -549,6 +550,10 @@ int main(int argc, char **argv)
{
{
mpiio_print_total_file
((
struct
darshan_mpiio_file
*
)
total
.
rec_dat
);
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 */
/* File Calc */
...
@@ -1674,6 +1679,23 @@ void calc_perf(perf_data_t *pdata,
...
@@ -1674,6 +1679,23 @@ void calc_perf(perf_data_t *pdata,
return
;
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
)
void
posix_print_total_file
(
struct
darshan_posix_file
*
pfile
)
{
{
int
i
;
int
i
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment