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

Method occupied_bytes

nodedb/src/engine/kv/slab.rs:100–102  ·  view source on GitHub ↗

Memory actively occupied (occupied_slots * slot_size).

(&self)

Source from the content-addressed store, hash-verified

98
99 /// Memory actively occupied (occupied_slots * slot_size).
100 fn occupied_bytes(&self) -> usize {
101 self.occupied * self.slot_size
102 }
103
104 /// Fragmentation ratio: capacity / occupied. 1.0 = no fragmentation.
105 /// Returns 0.0 if nothing is occupied.

Callers 3

fragmentation_ratioMethod · 0.80
used_bytesMethod · 0.80
tier_statsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected