ignore dynamic linker segments in bloat severity calculations (#28149)

pull/28247/head
Craig Tiller 3 years ago committed by GitHub
parent cfca3e5419
commit f6a88e54ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tools/profiling/bloat/bloat_diff.py

@ -127,8 +127,12 @@ for lib in LIBS:
]
print(sections)
for section in sections[1:]:
# skip debug sections for bloat severity calculation
if section[0].startswith(".debug"):
continue
# skip dynamic loader sections too
if section[0].startswith(".dyn"):
continue
diff_size += int(section[2])
else:
text += subprocess.check_output('%s %s.stripped -n 0 --debug-file=%s' %

Loading…
Cancel
Save