MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / available

Method available

graphlite/src/exec/memory_budget.rs:170–172  ·  view source on GitHub ↗

ROADMAP v0.2.0 - Available memory calculation (see ROADMAP.md §1)

(&self)

Source from the content-addressed store, hash-verified

168 /// Get available memory in bytes
169 #[allow(dead_code)] // ROADMAP v0.2.0 - Available memory calculation (see ROADMAP.md §1)
170 pub fn available(&self) -> usize {
171 self.limit.saturating_sub(self.allocated())
172 }
173
174 /// Get usage ratio (0.0 to 1.0)
175 ///

Callers 1

statsMethod · 0.80

Calls 1

allocatedMethod · 0.80

Tested by

no test coverage detected