rustwasm / twiggy

Twiggy🌱 is a code size profiler
https://rustwasm.github.io/twiggy
Apache License 2.0
1.26k stars 68 forks source link

Emit standalone, interactive HTML pages with Yew #9

Open fitzgen opened 6 years ago

fitzgen commented 6 years ago

We should be able to emit an HTML file containing:

This HTML file would be able to be sent easily as an email attachment or uploaded to a bug tracker, etc. Since it is just a single HTML file, and you wouldn't need to wrangle an HTML file and a JS file and a wasm file and ... and keep their relative positions on the filesystem correct.

fitzgen commented 6 years ago

And whoever you sent this HTML file to wouldn't need to have svelte already installed either.

fitzgen commented 6 years ago

Also, the web would be a good place to create visualizations like tree maps

fitzgen commented 6 years ago

@mbebenita wants something like this to integrate into wasm studio. In this use case, crucially, it would be able to parse new binaries live in the website, not work only with some extant parsed IR.

mbebenita commented 6 years ago

Since it is just a single HTML file, and you wouldn't need to wrangle an HTML file and a JS file and a wasm file and ... and keep their relative positions on the filesystem correct.

We can handle this use case through WebAssembly.Studio fiddle URLs.

AlexEne commented 3 years ago

Would you be supportive in closing this in favor of: https://github.com/rustwasm/twiggy/issues/581 ?

zxch3n commented 7 months ago

I made something that might be related to this https://github.com/zxch3n/wasm-size-inspector

https://github.com/rustwasm/twiggy/assets/18425020/7feca43b-9451-446b-857f-fd0da6ab7ef6