rustwasm/twiggy

Take a stripped file and symbols as additional input

AlexEne opened this issue · 1 comments

💡 Feature Description

Would be cool to make this work in release mode where we have a stripped file & additional symbols info (e.g. made with wasm-split).

💻 Example Usage

It would help size optimize the release-mode binaries.

This would be very very helpful. At the moment following the instructions in #490 I am only able to run twiggy in modes where my binary is much larger than it is in the shipping configuration and I am not sure how to tell whether the reported sizes correspond well to the sizes in non-debug builds.

For example I worry, what if I spend a lot of time optimizing function N which looks big in the dev build, but it turns out when -Os is doing its thing function N was pretty small anyway…

Is there some way, if I could generate a standalone symbols file, I could look up the numbers (eg "data[31]" or "code[482]" or whatever) in the stripped Twiggy view manually?