Skip to content

Conversation

@Oppen
Copy link
Contributor

@Oppen Oppen commented Oct 29, 2025

Motivation

Disaggregated block execution metrics are off because they count accumulate rather than each process' times.
Given we treat them as parts of a single thing, e.g. later making a pie chart of them, they should be counted as difference from the end of the previous step, like we do in logs.

Description

Fix the subtractions.

Copilot AI review requested due to automatic review settings October 29, 2025 22:01
@Oppen Oppen requested a review from a team as a code owner October 29, 2025 22:01
@github-actions github-actions bot added L1 Ethereum client L2 Rollup client labels Oct 29, 2025
Copy link
Contributor

Copilot AI left a 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 fixes the metrics calculations for block processing phases to measure individual phase durations instead of cumulative times.

  • Changed set_merkle_ms to measure only the merkleization phase duration (from executed to merkleized)
  • Changed set_store_ms to measure only the storage phase duration (from merkleized to stored)
  • Reordered the metric calls to match the chronological order of operations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-project-automation github-project-automation bot moved this to In Review in ethrex_l1 Oct 30, 2025
@edg-l edg-l added this pull request to the merge queue Oct 30, 2025
Merged via the queue into main with commit c228e18 Oct 30, 2025
39 checks passed
@edg-l edg-l deleted the fix/inaccurate_block_metrics branch October 30, 2025 13:25
@github-project-automation github-project-automation bot moved this from In Review to Done in ethrex_l1 Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L1 Ethereum client L2 Rollup client

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants