filecoin-project / filecoin-project/ref-fvm
Detailed execution gas profiling
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 422
- Forks
- 154
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 12
Description
It would be really useful to have some mechanism to get very detailed execution gas usage info.
This can be done by enabling debug symbols in wasmtime, adding a syscall which would log gas use with a backtrace, and having a mode in wasm-instrument which would invoke that syscall on each exec gas charge
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the wasmtime execution path and the wasm-instrument gas-charge instrumentation mentioned in the issue. Trace how debug symbols, a logging syscall, backtraces, and per-charge invocation would connect; done means a profiling mode reports detailed gas usage with backtraces during execution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, wasm
- Domain
- performance, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100