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

#1340 in WebAssembly

Download history 128/week @ 2023-12-05 114/week @ 2023-12-12 61/week @ 2023-12-19 48/week @ 2023-12-26 127/week @ 2024-01-02 112/week @ 2024-01-09 132/week @ 2024-01-16 74/week @ 2024-01-23 152/week @ 2024-01-30 104/week @ 2024-02-06 147/week @ 2024-02-13 174/week @ 2024-02-20 163/week @ 2024-02-27 174/week @ 2024-03-05 162/week @ 2024-03-12 160/week @ 2024-03-19

677 downloads per month
Used in twiggy

Apache-2.0/MIT

135KB
3K SLoC

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

~8.5MB
~153K SLoC