MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / stats

Method stats

nodedb/src/engine/array/memtable/tile_buffer.rs:266–274  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

264 }
265
266 pub fn stats(&self) -> MemtableStats {
267 let mut s = MemtableStats::default();
268 for b in self.tiles.values() {
269 s.tile_count += 1;
270 s.cell_count += b.live_cell_count();
271 s.max_lsn = s.max_lsn.max(b.last_lsn());
272 }
273 s
274 }
275
276 pub fn is_empty(&self) -> bool {
277 self.tiles.values().all(|b| b.entry_count() == 0)

Calls 2

live_cell_countMethod · 0.80
last_lsnMethod · 0.45