Skip to content
Snippets Groups Projects
Commit 6ad718c8 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

No longer just processing aligned memory, so remove

parent 06a2841a
Branches
Tags
1 merge request!757Memory allocations logger
......@@ -70,7 +70,7 @@ with open(sys.argv[1]) as infile:
del memuse[adr]
else:
# Unmatched free, complain and skip.
print "### unmatched free: ", label, adr
#print "### unmatched free: ", label, adr
doprint = False
if doprint:
if totalmem > peak:
......@@ -89,7 +89,7 @@ for adr in labels:
totals[labels[adr]] = memuse[adr][0]
numactive[labels[adr]] = 1
print "# Aligned memory use by label:"
print "# Memory use by label:"
print "## ", '{:<30s} {:>16s} {:>16s}'.format("label", "MB", "numactive")
print "## "
total = 0.0
......@@ -98,8 +98,8 @@ for label in sorted(totals):
total = total + mem
print "## ", '{:<30s} {:16.3f} {:16d}'.format(label, mem, numactive[label])
print "## "
print "# Total aligned memory still in use : ", '{:.3f}'.format(total), " (MB)"
print "# Peak aligned memory usage : ", '{:.3f}'.format(peak/1048576.0), " (MB)"
print "# Total memory still in use : ", '{:.3f}'.format(total), " (MB)"
print "# Peak memory usage : ", '{:.3f}'.format(peak/1048576.0), " (MB)"
if process_use != "":
print "#"
print "# Memory use by process (all/system):", process_use
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment