@@ -90,7 +90,7 @@ pub(crate) struct DatabaseProviderMetrics {
9090 /// Duration of `update_pipeline_stages` in `save_blocks`
9191 save_blocks_update_pipeline_stages : Histogram ,
9292 /// Number of blocks per `save_blocks` call
93- save_blocks_block_count : Histogram ,
93+ save_blocks_batch_size : Histogram ,
9494 /// Duration of MDBX commit in `save_blocks`
9595 save_blocks_commit_mdbx : Histogram ,
9696 /// Duration of static file commit in `save_blocks`
@@ -118,7 +118,7 @@ pub(crate) struct DatabaseProviderMetrics {
118118 /// Last duration of `update_pipeline_stages` in `save_blocks`
119119 save_blocks_update_pipeline_stages_last : Gauge ,
120120 /// Last number of blocks per `save_blocks` call
121- save_blocks_block_count_last : Gauge ,
121+ save_blocks_batch_size_last : Gauge ,
122122 /// Last duration of MDBX commit in `save_blocks`
123123 save_blocks_commit_mdbx_last : Gauge ,
124124 /// Last duration of static file commit in `save_blocks`
@@ -140,7 +140,7 @@ pub(crate) struct SaveBlocksTimings {
140140 pub write_trie_updates : Duration ,
141141 pub update_history_indices : Duration ,
142142 pub update_pipeline_stages : Duration ,
143- pub block_count : u64 ,
143+ pub batch_size : u64 ,
144144}
145145
146146/// Timings collected during a `commit` call.
@@ -182,7 +182,7 @@ impl DatabaseProviderMetrics {
182182 self . save_blocks_write_trie_updates . record ( timings. write_trie_updates ) ;
183183 self . save_blocks_update_history_indices . record ( timings. update_history_indices ) ;
184184 self . save_blocks_update_pipeline_stages . record ( timings. update_pipeline_stages ) ;
185- self . save_blocks_block_count . record ( timings. block_count as f64 ) ;
185+ self . save_blocks_batch_size . record ( timings. batch_size as f64 ) ;
186186
187187 self . save_blocks_total_last . set ( timings. total . as_secs_f64 ( ) ) ;
188188 self . save_blocks_mdbx_last . set ( timings. mdbx . as_secs_f64 ( ) ) ;
@@ -196,7 +196,7 @@ impl DatabaseProviderMetrics {
196196 . set ( timings. update_history_indices . as_secs_f64 ( ) ) ;
197197 self . save_blocks_update_pipeline_stages_last
198198 . set ( timings. update_pipeline_stages . as_secs_f64 ( ) ) ;
199- self . save_blocks_block_count_last . set ( timings. block_count as f64 ) ;
199+ self . save_blocks_batch_size_last . set ( timings. batch_size as f64 ) ;
200200 }
201201
202202 /// Records all commit timings.
0 commit comments