Add block.rc_size, table.size and table.merkle_tree_size metrics

This commit is contained in:
Alex Auvolat
2022-12-13 15:54:03 +01:00
parent f8d5409894
commit 041b60ed1d
4 changed files with 57 additions and 4 deletions
+7 -1
View File
@@ -58,7 +58,13 @@ where
.expect("Unable to open DB tree");
let gc_todo = CountedTree::new(gc_todo).expect("Cannot count gc_todo_v2");
let metrics = TableMetrics::new(F::TABLE_NAME, merkle_todo.clone(), gc_todo.clone());
let metrics = TableMetrics::new(
F::TABLE_NAME,
store.clone(),
merkle_tree.clone(),
merkle_todo.clone(),
gc_todo.clone(),
);
Arc::new(Self {
system,