Commit dcc18274 authored by Sudheer Chunduri's avatar Sudheer Chunduri
Browse files

apmpi/pydarshan: update the pydarshan to process APMPI records

parent d9fd34f3
This diff is collapsed.
This diff is collapsed.
......@@ -670,40 +670,32 @@ class DarshanReport(object):
# skip mod
return
#print(mod+"-HEADER")
#print(_structdefs[mod+"-HEADER"])
# handling options
dtype = dtype if dtype else self.dtype
self.records[mod] = []
self.records[mod] = DarshanRecordCollection(mod=mod, report=self)
# update module metadata
self.modules[mod]['num_records'] = 0
self._modules[mod]['num_records'] = 0
if mod not in self.counters:
self.counters[mod] = {}
# fetch header record
header_rec = backend.log_get_apmpi_record(self.log, _structdefs[mod+"-HEADER"])
self.records[mod].append(header_rec)
# fetch records
rec = backend.log_get_apmpi_record(self.log, _structdefs[mod+"-PERF"])
# fetch header record
rec = backend.log_get_apmpi_record(self.log, mod, "HEADER", dtype=dtype)
while rec != None:
if dtype == 'numpy':
self.records[mod].append(rec)
else:
self.records[mod].append(rec)
self.records[mod].append(rec)
self.data['modules'][mod]['num_records'] += 1
# fetch next
rec = backend.log_get_apmpi_record(self.log, _structdefs[mod+"-PERF"])
rec = backend.log_get_apmpi_record(self.log, mod, "PERF", dtype=dtype)
if self.lookup_name_records:
self.update_name_records()
pass
pass
def mod_read_all_dxt_records(self, mod, dtype=None, warnings=True, reads=True, writes=True):
"""
Reads all dxt records for provided module.
......
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