Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build size analysis #1450

Merged
merged 2 commits into from
Apr 6, 2020
Merged

Build size analysis #1450

merged 2 commits into from
Apr 6, 2020

Conversation

Ecco
Copy link
Contributor

@Ecco Ecco commented Apr 5, 2020

This PR adds a tool to compare the size of two binaries, and hooks it into the CI system to report it on any incoming PR.

@Ecco
Copy link
Contributor Author

Ecco commented Apr 5, 2020

Note: Current failure is most likely due to running from a PR (and therefore not having the proper auth token). Should be OK once merged.

# ELF analysis

def loadable_sections(elf_file, address_prefix = ""):
objdump_section_headers_pattern = re.compile("^\s+\d+\s+(\.[\w\.]+)\s+([0-9a-f]+)\s+([0-9a-f]+)\s+("+address_prefix+"[0-9a-f]+)\s+([0-9a-f]+).*LOAD", flags=re.MULTILINE)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a comment to explicit this to the reader?

Copy link
Contributor Author

@Ecco Ecco Apr 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well… this is an unfair request 😄 This exact same code already made it to the tree without any comment whatsoever. See build/device/elf2dfu.py 😄

@LeaNumworks LeaNumworks merged commit e34811f into numworks:master Apr 6, 2020
@Ecco Ecco deleted the build-size-analysis branch April 6, 2020 13:29
@RedGl0w
Copy link
Contributor

RedGl0w commented Apr 6, 2020

It doesn't work well :/
See https://github.com/numworks/epsilon/pull/1459/checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants