ref-fvm icon indicating copy to clipboard operation
ref-fvm copied to clipboard

Gas Tracing

Open Stebalien opened this issue 3 years ago • 1 comments

Currently, the FVM supports

  • Execution tracing. Specifically, tracing of a message's call graph.
  • Gas logging. I.e., it can (if trace logging is enabled) log all gas charges.

However, unlike the Lotus VM, the execution trace does not include individual gas charges. This makes debugging gas charges significantly more annoying.

Proposal: Extend the execution trace to include:

  • Gas numbers (gas consumed up to that point should be sufficient).
  • Syscalls.

We could include all gas charges, but that's probably overkill.

Stebalien avatar Aug 03 '22 00:08 Stebalien

can lotus have cold/warm storage? It helps a lot with parallelization.

karim-agha avatar Aug 23 '22 17:08 karim-agha

@Stebalien Do we need this for M2.1?

maciejwitowski avatar Oct 07 '22 12:10 maciejwitowski

Fixed in #709.

Stebalien avatar Oct 07 '22 14:10 Stebalien