7 releases (breaking)

0.7.0 Aug 30, 2021
0.6.0 Jun 27, 2019
0.5.0 May 15, 2019
0.4.0 Feb 2, 2019
0.1.0 May 3, 2018

#971 in Development tools

Download history 91/week @ 2022-08-09 91/week @ 2022-08-16 107/week @ 2022-08-23 115/week @ 2022-08-30 100/week @ 2022-09-06 228/week @ 2022-09-13 198/week @ 2022-09-20 222/week @ 2022-09-27 236/week @ 2022-10-04 370/week @ 2022-10-11 258/week @ 2022-10-18 149/week @ 2022-10-25 111/week @ 2022-11-01 173/week @ 2022-11-08 264/week @ 2022-11-15 245/week @ 2022-11-22

822 downloads per month
Used in 4 crates

Apache-2.0/MIT

31KB
712 lines

Twiggy🌱

A code size profiler for Wasm

Guide | Contributing | Chat

Built with 🦀🕸 by The Rust and WebAssembly Working Group

About

Twiggy is a code size profiler for Wasm. It analyzes a binary's call graph to answer questions like:

  • Why was this function included in the binary in the first place? Who calls it?

  • What is the retained size of this function? I.e. how much space would be saved if I removed it and all the functions that become dead code after its removal.

Use Twiggy to make your binaries slim!

Install Twiggy

Ensure that you have the Rust toolchain installed, then run:

cargo install twiggy

Learn More!

Read the Twiggy guide!

Dependencies

~5–6.5MB
~136K SLoC