filecoin-project / filecoin-project/ref-fvm

Detailed execution gas profiling

Open
#696 1 comment 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.