@@ -197,26 +197,13 @@ impl fmt::Display for MemorySize {
197197 }
198198}
199199
200- /// Memory statistics for state db.
201- #[ derive( Default , Clone , Debug ) ]
202- pub struct StateDbMemoryInfo {
203- /// Memory usage of the non-canonical overlay
204- pub non_canonical : MemorySize ,
205- /// Memory usage of the pruning window.
206- pub pruning : Option < MemorySize > ,
207- /// Memory usage of the pinned blocks.
208- pub pinned : MemorySize ,
209- }
210-
211200/// Memory statistics for client instance.
212201#[ derive( Default , Clone , Debug ) ]
213202pub struct MemoryInfo {
214203 /// Size of state cache.
215204 pub state_cache : MemorySize ,
216205 /// Size of backend database cache.
217206 pub database_cache : MemorySize ,
218- /// Size of the state db.
219- pub state_db : StateDbMemoryInfo ,
220207}
221208
222209/// I/O statistics for client instance.
@@ -264,13 +251,9 @@ impl fmt::Display for UsageInfo {
264251 write ! (
265252 f,
266253 "caches: ({} state, {} db overlay), \
267- state db: ({} non-canonical, {} pruning, {} pinned), \
268254 i/o: ({} tx, {} write, {} read, {} avg tx, {}/{} key cache reads/total, {} trie nodes writes)",
269255 self . memory. state_cache,
270256 self . memory. database_cache,
271- self . memory. state_db. non_canonical,
272- self . memory. state_db. pruning. unwrap_or_default( ) ,
273- self . memory. state_db. pinned,
274257 self . io. transactions,
275258 self . io. bytes_written,
276259 self . io. bytes_read,
0 commit comments