mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-09 03:17:55 +00:00
Measure consensus verification time (#6089)
* Measure consensus verification time * Track execution time properly
This commit is contained in:
@@ -1385,6 +1385,15 @@ fn observe_head_block_delays<E: EthSpec, S: SlotClock>(
|
||||
.as_millis() as i64,
|
||||
);
|
||||
|
||||
// The time it took to check the validity within Lighthouse
|
||||
metrics::set_gauge(
|
||||
&metrics::BEACON_BLOCK_DELAY_CONSENSUS_VERIFICATION_TIME,
|
||||
block_delays
|
||||
.consensus_verification_time
|
||||
.unwrap_or_else(|| Duration::from_secs(0))
|
||||
.as_millis() as i64,
|
||||
);
|
||||
|
||||
// The time it took to check the validity with the EL
|
||||
metrics::set_gauge(
|
||||
&metrics::BEACON_BLOCK_DELAY_EXECUTION_TIME,
|
||||
@@ -1447,6 +1456,7 @@ fn observe_head_block_delays<E: EthSpec, S: SlotClock>(
|
||||
"total_delay_ms" => block_delay_total.as_millis(),
|
||||
"observed_delay_ms" => format_delay(&block_delays.observed),
|
||||
"blob_delay_ms" => format_delay(&block_delays.all_blobs_observed),
|
||||
"consensus_time_ms" => format_delay(&block_delays.consensus_verification_time),
|
||||
"execution_time_ms" => format_delay(&block_delays.execution_time),
|
||||
"available_delay_ms" => format_delay(&block_delays.available),
|
||||
"attestable_delay_ms" => format_delay(&block_delays.attestable),
|
||||
@@ -1463,6 +1473,7 @@ fn observe_head_block_delays<E: EthSpec, S: SlotClock>(
|
||||
"total_delay_ms" => block_delay_total.as_millis(),
|
||||
"observed_delay_ms" => format_delay(&block_delays.observed),
|
||||
"blob_delay_ms" => format_delay(&block_delays.all_blobs_observed),
|
||||
"consensus_time_ms" => format_delay(&block_delays.consensus_verification_time),
|
||||
"execution_time_ms" => format_delay(&block_delays.execution_time),
|
||||
"available_delay_ms" => format_delay(&block_delays.available),
|
||||
"attestable_delay_ms" => format_delay(&block_delays.attestable),
|
||||
|
||||
Reference in New Issue
Block a user