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

Method resident_bytes

nodedb-mem/src/collection_arena.rs:43–46  ·  view source on GitHub ↗

Query the resident memory (bytes) in this arena. Returns `None` when no dedicated arena exists or the query fails.

(&self)

Source from the content-addressed store, hash-verified

41 ///
42 /// Returns `None` when no dedicated arena exists or the query fails.
43 pub fn resident_bytes(&self) -> Option<u64> {
44 let idx = self.arena_index?;
45 read_arena_resident(idx).ok().map(|v| v as u64)
46 }
47}
48
49/// Registry of per-collection jemalloc arenas.

Callers 2

Calls 2

read_arena_residentFunction · 0.85
okMethod · 0.45

Tested by 1