i/o stats for backend databases (#4525)

This commit is contained in:
Nikolay Volf
2020-01-07 21:53:03 +03:00
committed by GitHub
parent 9500eb7590
commit df4058b556
16 changed files with 245 additions and 55 deletions
+6 -1
View File
@@ -37,6 +37,7 @@ use sc_client_api::{
blockchain::{
self, BlockStatus, HeaderBackend, well_known_cache_keys::Id as CacheKeyId
},
UsageInfo,
};
use crate::leaves::LeafSet;
@@ -449,6 +450,10 @@ impl<Block: BlockT> sc_client_api::light::Storage<Block> for Blockchain<Block>
fn cache(&self) -> Option<Arc<dyn blockchain::Cache<Block>>> {
None
}
fn usage_info(&self) -> Option<sc_client_api::UsageInfo> {
None
}
}
/// In-memory operation.
@@ -681,7 +686,7 @@ where
&self.blockchain
}
fn used_state_cache_size(&self) -> Option<usize> {
fn usage_info(&self) -> Option<UsageInfo> {
None
}