Add flow transactions profile command#2254
Merged
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
5e4599c to
a63c33a
Compare
b9e0a97 to
9d57fba
Compare
flow cadence profile commandflow cadence profile command
There was a problem hiding this comment.
Pull request overview
This PR adds a new flow cadence profile command that enables profiling of transaction execution on Flow networks. The command generates pprof-compatible profile data for analyzing transaction performance and resource usage.
Changes:
- Implements transaction profiling functionality by replaying transactions using FVM with forked state
- Adds comprehensive test coverage for validation, result formatting, and integration testing with local emulator
- Increases gRPC timeout from 5 to 60 seconds to support profiling operations
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| internal/util/util.go | Increases GetChainIDFromHost timeout to 60 seconds to accommodate profiling operations |
| internal/transactions/transactions.go | Registers the new profile command with the transaction command group |
| internal/transactions/profile.go | Core implementation of transaction profiling including FVM setup, state forking, and pprof export |
| internal/transactions/profile_test.go | Comprehensive test suite covering validation, result formatting, and integration scenarios |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
flow cadence profile commandflow transactions profile command
janezpodhostnik
approved these changes
Jan 20, 2026
Contributor
janezpodhostnik
left a comment
There was a problem hiding this comment.
I tested it out and I love it. This is going to be such a big help!
302bb8b to
50efcdd
Compare
Member
|
Love this! ❤️ |
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.
Closes #2251
Description
For contributor use:
masterbranchFiles changedin the Github PR explorer