ROADMAP v0.5.0 - Human-readable memory statistics for diagnostics
(&self)
| 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 |
no outgoing calls