mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: enable prewarm spawn metrics (#14229)
This commit is contained in:
@ -70,7 +70,6 @@ pub(crate) struct BlockValidationMetrics {
|
|||||||
/// Trie input computation duration
|
/// Trie input computation duration
|
||||||
pub(crate) trie_input_duration: Gauge,
|
pub(crate) trie_input_duration: Gauge,
|
||||||
/// Prewarm spawn duration
|
/// Prewarm spawn duration
|
||||||
#[allow(dead_code)]
|
|
||||||
pub(crate) prewarm_spawn_duration: Gauge,
|
pub(crate) prewarm_spawn_duration: Gauge,
|
||||||
/// Cache saving duration
|
/// Cache saving duration
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
|
|||||||
@ -2455,6 +2455,8 @@ where
|
|||||||
drop(state_root_sender);
|
drop(state_root_sender);
|
||||||
let elapsed = prewarm_start.elapsed();
|
let elapsed = prewarm_start.elapsed();
|
||||||
debug!(target: "engine::tree", ?elapsed, "Done spawning prewarm threads");
|
debug!(target: "engine::tree", ?elapsed, "Done spawning prewarm threads");
|
||||||
|
|
||||||
|
self.metrics.block_validation.prewarm_spawn_duration.set(elapsed.as_secs_f64());
|
||||||
}
|
}
|
||||||
trace!(target: "engine::tree", block=?block_num_hash, "Executing block");
|
trace!(target: "engine::tree", block=?block_num_hash, "Executing block");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user