add rodata

This commit is contained in:
nora 2023-11-21 16:23:36 +01:00
parent 5d42b2fcf8
commit 30d38eab5a
3 changed files with 64 additions and 33 deletions

View file

@ -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.