Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@aelmanaa is attempting to deploy a commit to the Nomic Foundation Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The guide needs a documentation correction, and upstream behavior and release availability require confirmation before merging.
1 open issue
What changed in this PR
Adds a guide to Solidity test gas profiling and connects it to existing testing documentation.
Changes:
- Documents profiling commands, output, gas accounting, visualization, and limitations.
- Adds links from related guides.
- Adds visualization terms to the spelling dictionary.
| File | Description |
|---|---|
| src/content/docs/docs/guides/testing/using-solidity.mdx | Links test filters to gas profiling. |
| src/content/docs/docs/guides/testing/index.mdx | Adds the guide to further reading. |
| src/content/docs/docs/guides/testing/gas-statistics.mdx | Links statistics readers to profiling. |
| src/content/docs/docs/guides/testing/gas-profiles.mdx | Introduces the gas profiling guide. |
| src/content/docs/docs/guides/execution-traces.mdx | Links execution traces to profiling. |
| cspell-dictionary.txt | Adds speedscope and flamegraph. |
Review effort: Balanced
|
|
||
| Hardhat has three ways to look at gas, and each one answers a different question: | ||
|
|
||
| - [Gas statistics](/docs/guides/testing/gas-statistics) (`--gas-stats`) sum the gas of each public function across all your tests. Use them to track what your functions cost your users. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Docs for NomicFoundation/hardhat#8738, which adds
--gas-profiletohardhat test solidity. Proposal: NomicFoundation/hardhat#8737.docs/guides/testing/gas-profiles.mdx. It covers:--gas-statsor-vvvvtraces;gas-statistics.mdx, the testing guides index,using-solidity.mdx(next to--grep), andexecution-traces.mdx.cspell-dictionary.txt: addsspeedscopeandflamegraph.pnpm lintpasses (prettier, astro check, cspell).Merge this only after the hardhat PR is released. The HTML report from the follow-up PR will get its own docs PR.
🤖 Generated with Claude Code