Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
6ad718c8
Commit
6ad718c8
authored
6 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Patches
Plain Diff
No longer just processing aligned memory, so remove
parent
06a2841a
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!757
Memory allocations logger
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/process_memuse.py
+4
-4
4 additions, 4 deletions
tools/process_memuse.py
with
4 additions
and
4 deletions
tools/process_memuse.py
+
4
−
4
View file @
6ad718c8
...
...
@@ -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 m
emory use by label:
"
print
"
#
M
emory 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment