feat(cheatcodes): add vm.startGasRecording
+ vm.stopGasRecording
#7900
Labels
Milestone
vm.startGasRecording
+ vm.stopGasRecording
#7900
Following the
lastCallGas
addition here: https://github.com/foundry-rs/forge-std/releases/tag/v1.8.2I'd love to see some way to
startGasRecording
andstopGasRecording
(similar to logs, state diff/mapping recordings) where we can record and retrieve a list ofGas[]
to iterate over.This would give us much finer control (and I assume accuracy) over the gas measuring strategy we use here:
https://github.com/latticexyz/mud/blob/main/packages/gas-report/README.md
https://github.com/latticexyz/mud/blob/main/packages/gas-report/src/GasReporter.sol
The text was updated successfully, but these errors were encountered: