Skip to content
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

Capture wasm backtraces for gas traces #439

Open
Kubuxu opened this issue Apr 1, 2022 · 1 comment
Open

Capture wasm backtraces for gas traces #439

Kubuxu opened this issue Apr 1, 2022 · 1 comment

Comments

@Kubuxu
Copy link

Kubuxu commented Apr 1, 2022

Go today provides backtraces for gas charging points which is useful for debugging and gas performance evaluations.

Unfortunately, it looks like it is impossible today for WASM and Rust:
https://github.com/rust-lang/backtrace-rs/blob/38cb2d5562a3d1b3a66bc21360d91275ea55cc0a/src/lib.rs#L75-L76

@Kubuxu
Copy link
Author

Kubuxu commented Apr 27, 2022

It is possible by capturing the traces within syscall (in Rust-land), if WASM is built with symbols, the backtrace should resolve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant