File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
crates/engine/tree/src/tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ pub(crate) struct BlockValidationMetrics {
70
70
/// Trie input computation duration
71
71
pub ( crate ) trie_input_duration : Gauge ,
72
72
/// Prewarm spawn duration
73
- #[ allow( dead_code) ]
74
73
pub ( crate ) prewarm_spawn_duration : Gauge ,
75
74
/// Cache saving duration
76
75
#[ allow( dead_code) ]
Original file line number Diff line number Diff line change @@ -2455,6 +2455,8 @@ where
2455
2455
drop ( state_root_sender) ;
2456
2456
let elapsed = prewarm_start. elapsed ( ) ;
2457
2457
debug ! ( target: "engine::tree" , ?elapsed, "Done spawning prewarm threads" ) ;
2458
+
2459
+ self . metrics . block_validation . prewarm_spawn_duration . set ( elapsed. as_secs_f64 ( ) ) ;
2458
2460
}
2459
2461
trace ! ( target: "engine::tree" , block=?block_num_hash, "Executing block" ) ;
2460
2462
You can’t perform that action at this time.
0 commit comments