-
Notifications
You must be signed in to change notification settings - Fork 144
feat(l1): improve block execution aggregation logs #5260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Lines of code reportTotal lines added: Detailed view |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR improves the clarity of block execution aggregation logs by restructuring percentage calculations to avoid confusion where percentages didn't sum to 100%.
Key changes:
- Renamed
merkle_end_instantto_merkle_end_instantto indicate it's not directly used in the new log format - Restructured the log format to show sequential phases with better separators
- Adjusted percentage calculations to show: block validation, exec (with concurrent merkle), merkle-only phase, and storage phases
Comments suppressed due to low confidence (1)
crates/blockchain/blockchain.rs:1
- Missing opening parenthesis before 'max_queue_length'. The format string has '(max_queue_length:' but should have both opening and closing parentheses around the entire clause. Change to '(max_queue_length: {merkle_queue_length})'.
pub mod constants;
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
**Motivation** Current block execution logs are a bit confusing, since percentages don't sum to 100%. **Description** This PR changes the block execution logs from: ```text 2025-11-11T16:38:49.782644Z INFO [METRIC] BLOCK EXECUTION THROUGHPUT (1600202): 0.333 Ggas/s TIME SPENT: 59 ms. Gas Used: 0.020 (33%), #Txs: 490. block validation: 0% exec+merkle: 98% (exec: 87% merkle: 98% max_queue_length: 363) store: 2% ``` to: ```text 2025-11-11T16:38:49.782644Z INFO [METRIC] BLOCK EXECUTION THROUGHPUT (1600202): 0.333 Ggas/s TIME SPENT: 59 ms. Gas Used: 0.020 (33%), #Txs: 490. block validation: 0% | exec(w/merkle): 87% | merkle-only: 11% (max_queue_length: 363) | store: 2% ``` --------- Co-authored-by: Ivan Litteri <[email protected]>
Motivation
Current block execution logs are a bit confusing, since percentages don't sum to 100%.
Description
This PR changes the block execution logs from:
to: