question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Testing: Gas reporting in tests

See original GitHub issue

Overview

Create a gas report when running tests

Specification

def get_gas_usage(self):
        """
        """

        calltree = self._calltree(show_internal=True)
        # TODO: gas report logic
        # {Address: {Calldata: [GasUsed, ...]}}
        return calltree

https://github.com/eth-brownie/brownie/blob/master/brownie/test/output.py#L62

Dependencies

#345 #347

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
fubuloubucommented, Aug 11, 2022

ipfs://bafybeihapxqz43vadpqicxulwihrj6pqnvrxavf7hruk6xk45es57ds3hi/forge/gas-reports.html

Does this actually require tracing? This table looks like it tracks the calls and gas_used from the receipts and calculates some stats on them.

What you want is all internal and external calls that were made, and their relative gas usage

0reactions
unparalleled-jscommented, Aug 19, 2022

Make progress here but haven’t gotten to the hard part yet I don’t think.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TEST REPORT - NET
The observations and test results in this report are relevant only to the sample ... Drawings of stack gas sampling train and dilution...
Read more >
Mandatory Testing Of Medical Gas Systems
A written report will be made of all findings and results. ... Each system in turn shall be tested to assure that the...
Read more >
Testing at the National Vehicle and Fuel Emissions ...
EPA's National Vehicle and Fuel Emissions Laboratory (NVFEL) tests new cars and trucks sold in the U.S. to ensure that they comply with ......
Read more >
Medical Gas Testing Service
What is Medical Gas Testing Report? ... Before medical air testing is done, a method statement should be prepared, detailing the procedure of...
Read more >
How Vehicles Are Tested
Manufacturers test their own vehicles—usually pre-production prototypes—and report the results to EPA. EPA reviews the results and confirms about 15%–20% of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found