Is it possible to know the amount of storage operations (or gas spent) that are between, let's say 4 functions, or a full contract?
Is foundry capable of this?
Thanks!
Is it possible to know the amount of storage operations (or gas spent) that are between, let's say 4 functions, or a full contract?
Is foundry capable of this?
Thanks!
According to my knowledge direct measurement of gas usage between functions in a deployed smart contract isn't possible. It's like measuring flour used for each step in a baked cake. Gas is tracked at the instruction level, not the function level in the compiled code (similar to how a recipe doesn't track flour per step).
However, tools like Foundry can help estimate gas usage indirectly: