-
Notifications
You must be signed in to change notification settings - Fork 352
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
[WIP] compilesymbolunits to keep track of instruction size, static ram usage and rodata #222
base: main
Are you sure you want to change the base?
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
I am curious, does a breakdown by section give you what you need? eg.
You can use custom data sources to bucket section names into broader categories like "FUNC", "DATA", "RODATA" according to whatever logic you want. If you want to see this breakdown in columns instead of rows, I have a WIP change for this that implements a
It needs some work though. Would this satisfy your needs? With a custom data source, you could get output a lot like your example. |
Indeed a section breakdown provides the information what I need but it tends to be hard to read and filter out the outliers in .rodata, .data or .bss sections.
Yes the pivot option would be pretty much solve the problem I've got, and if you even could sort on these rows (e.g. sort by .rodata) that would be perfect. |
I'm happily using bloaty to keep track of the flash usage in my microcontroller projects, however Bloaty is only limited to keep track flash usage using File Size and VM size, whereas for microcontrollers you also want to keep track of static ram/heap usage. Furthermore it's also nice to keep track off read-only data (RODATA) to utilize the Harvard CPU architecture mostly used in microcontrollers to save on SRAM usage.
This is an experimental that branch implements the compilesymbolunits datasource output option, which adds extra information from the symbol table into the following columns:
Example output of bloaty
Known issues
ComputeRollup
and https://github.com/PetervdPerk/bloaty/blob/compilesymbolunits/src/elf.cc#L1389_ZTSN6bloaty5ErrorE
is no where to be found.