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

ability to start/stop recording gas for calls #7900

Open
holic opened this issue May 9, 2024 · 0 comments
Open

ability to start/stop recording gas for calls #7900

holic opened this issue May 9, 2024 · 0 comments

Comments

@holic
Copy link

holic commented May 9, 2024

Following the lastCallGas addition here: https://github.com/foundry-rs/forge-std/releases/tag/v1.8.2

I'd love to see some way to startGasRecording and stopGasRecording (similar to logs, state diff/mapping recordings) where we can record and retrieve a list of Gas[] 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

@mds1 mds1 transferred this issue from foundry-rs/forge-std May 9, 2024
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