Skip to content

Add metrics for execution and storage times per block#2302

Merged
fkrause98 merged 8 commits into
mainfrom
gas-exec-store-metrics
Apr 21, 2025
Merged

Add metrics for execution and storage times per block#2302
fkrause98 merged 8 commits into
mainfrom
gas-exec-store-metrics

Conversation

@Arkenan

@Arkenan Arkenan commented Mar 25, 2025

Copy link
Copy Markdown
Collaborator

This PR adds logs for each imported block:

  • Transaction count
  • ms/Ggas for execution
  • ms/Ggas for storage
  • Percentage between execution and storage in an imported block

@Arkenan Arkenan requested a review from a team as a code owner March 25, 2025 13:33
@github-actions

github-actions Bot commented Mar 25, 2025

Copy link
Copy Markdown

Lines of code report

Total lines added: 24
Total lines removed: 0
Total lines changed: 24

Detailed view
+----------------------------------------+-------+------+
| File                                   | Lines | Diff |
+----------------------------------------+-------+------+
| ethrex/crates/blockchain/blockchain.rs | 537   | +24  |
+----------------------------------------+-------+------+

Comment thread crates/blockchain/blockchain.rs Outdated
@Arkenan Arkenan requested a review from mpaulucci March 25, 2025 18:35
};

let result = inner().await;
let res = self.execute_block(block).await?;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that now there will be no log if execution fails. It sounds reasonable but it's not the original behavior.

@fkrause98 fkrause98 added this pull request to the merge queue Apr 21, 2025
Merged via the queue into main with commit 775bc45 Apr 21, 2025
@fkrause98 fkrause98 deleted the gas-exec-store-metrics branch April 21, 2025 15:23
pedrobergamini pushed a commit to pedrobergamini/ethrex that referenced this pull request Aug 24, 2025
This PR adds logs for each imported block:
- Transaction count
- ms/Ggas for execution
- ms/Ggas for storage
- Percentage between execution and storage in an imported block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants