ROADMAP v0.2.0 - Memory statistics for monitoring (see ROADMAP.md §1)
(&self)
| 217 | /// Get memory statistics |
| 218 | #[allow(dead_code)] // ROADMAP v0.2.0 - Memory statistics for monitoring (see ROADMAP.md §1) |
| 219 | pub fn stats(&self) -> MemoryStats { |
| 220 | MemoryStats { |
| 221 | limit: self.limit, |
| 222 | allocated: self.allocated(), |
| 223 | peak: self.peak(), |
| 224 | available: self.available(), |
| 225 | } |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | /// Memory usage statistics |