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

#377 in Profiling

Download history 202/week @ 2024-06-19 204/week @ 2024-06-26 325/week @ 2024-07-03 182/week @ 2024-07-10 179/week @ 2024-07-17 244/week @ 2024-07-24 289/week @ 2024-07-31 274/week @ 2024-08-07 250/week @ 2024-08-14 374/week @ 2024-08-21 334/week @ 2024-08-28 279/week @ 2024-09-04 263/week @ 2024-09-11 290/week @ 2024-09-18 362/week @ 2024-09-25 514/week @ 2024-10-02

1,467 downloads per month

Apache-2.0/MIT

2.5MB
4.5K SLoC

Contains (ELF exe/lib, 2MB) tests/all/fixtures/hello_elf

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

~12MB
~206K SLoC