New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement better size profiler #724
Comments
FWIW, I wrote down my wish-list for such a tool here: rustwasm/team#20 (comment) TLDR: size profiling is very similar to heap profiling, just with different graphs: call graph vs heap graph and exported functions vs GC roots. |
Thanks, that's useful information! It seems like a lot of your requirements are rust-specific (or at least require standardized debug info). But I think we can provide some of the functionality in a generic way in wabt. |
I think the only thing that requires new debuginfo would be inlined code analysis. The monomorphizations can be determined by symbol name (either Rust or C++ specific symbol parsing) which should be in the existing "name" section (if it isn't inlined). All the call graph related analyses should be doable regardless of language and debug info. |
https://github.com/rustwasm/twiggy implements everything I was imagining here. I think we can close this issue :) |
See Oxidizing Source Maps with Rust and WebAssembly.
It shouldn't be too difficult to add this functionality to wabt.
The text was updated successfully, but these errors were encountered: