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

Method format_human_readable

graphlite/src/exec/memory_budget.rs:253–261  ·  view source on GitHub ↗

ROADMAP v0.5.0 - Human-readable memory statistics for diagnostics

(&self)

Source from the content-addressed store, hash-verified

251 /// Format as human-readable string
252 #[allow(dead_code)] // ROADMAP v0.5.0 - Human-readable memory statistics for diagnostics
253 pub fn format_human_readable(&self) -> String {
254 format!(
255 "Memory: {}/{} ({:.1}%), Peak: {}",
256 Self::format_bytes(self.allocated),
257 Self::format_bytes(self.limit),
258 (self.allocated as f64 / self.limit as f64) * 100.0,
259 Self::format_bytes(self.peak)
260 )
261 }
262
263 /// Format bytes as human-readable (KB, MB, GB)
264 #[allow(dead_code)] // ROADMAP v0.5.0 - Byte formatting utility for memory statistics

Callers 1

test_memory_stats_formatFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_memory_stats_formatFunction · 0.64