You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds a command to the Pigweed CLI which can be used to run size
reports on binaries without having to go through the GN build.
The command initially supports single binary size reports on ELF files
which are linked using pw_bloat memory region symbols. Additional data
sources can be specified to be displayed hierarchically under the root
memoryregions.
Example usage (no child data sources):
$ pw bloat out/docs/obj/pw_result/size_report/bin/ladder_and_then.elf
▒█████▄ █▓ ▄███▒ ▒█ ▒█ ░▓████▒ ░▓████▒ ▒▓████▄
▒█░ █░ ░█▒ ██▒ ▀█▒ ▒█░ █ ▒█ ▒█ ▀ ▒█ ▀ ▒█ ▀█▌
▒█▄▄▄█░ ░█▒ █▓░ ▄▄░ ▒█░ █ ▒█ ▒███ ▒███ ░█ █▌
▒█▀ ░█░ ▓█ █▓ ░█░ █ ▒█ ▒█ ▄ ▒█ ▄ ░█ ▄█▌
▒█ ░█░ ░▓███▀ ▒█▓▀▓█░ ░▓████▒ ░▓████▒ ▒▓████▀
+----------------------+---------+
| memoryregions | sizes |
+======================+=========+
|FLASH |1,048,064|
|RAM | 196,608|
|VECTOR_TABLE | 512|
+======================+=========+
|Total |1,245,184|
+----------------------+---------+
Change-Id: Icc34a085cc62ce3fcf0697f04aaed50c6d559024
Requires: pigweed-internal:32580
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/112314
Reviewed-by: Armando Montanez <amontanez@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Commit-Queue: Alexei Frolov <frolv@google.com>
0 commit comments