I'm trying to figure out where are the big gas spender instructions from my contract, so I'm simulating some transactions in a forked local node using ganache-cli and debugging the tx using Truffle. However, I can only see the total gas spent by a transaction. Ideally I'd like to be able to see how much (cumulative) gas has been spent until any point during execution, are there any tools that allow to do this?


  • I am not sure but tools from tenderly.co could do it. Not sure if they can connect to a local network though. Commented Jun 30, 2021 at 10:31

1 Answer 1


you can use Eth gas reporter plugin for a truffle or you can use the remix plugin for the same to check the gas cost per instruction or function. If you are using hardhat then there is hardhat gas reporter

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.