mirror of
https://github.com/Noratrieb/my-binary-is-thicc-af.git
synced 2026-01-14 11:45:05 +01:00
add rodata
This commit is contained in:
parent
5d42b2fcf8
commit
30d38eab5a
3 changed files with 64 additions and 33 deletions
|
|
@ -1,5 +1,7 @@
|
|||
# Rust binary size analyzer
|
||||
|
||||
## .text mode
|
||||
|
||||
How to use:
|
||||
|
||||
`cd client && npm i && npm run dev`
|
||||
|
|
@ -8,4 +10,8 @@ In a separate shell:
|
|||
|
||||
`cargo run --release BINARY_PATH > client/groups.json`
|
||||
|
||||
Note: The symbol parsing code is extremely cursed. This may lead to very wonky results.
|
||||
Note: The symbol parsing code is extremely cursed. This may lead to very wonky results.
|
||||
|
||||
## .rodata mode
|
||||
|
||||
Pass `--rodata` to `cargo run`. It will print all symbols in rodata, printing their estimated size.
|
||||
Loading…
Add table
Add a link
Reference in a new issue