ROADMAP v0.2.0 - Peak memory tracking (see ROADMAP.md §1)
(&self)
| 156 | /// Get peak allocated memory in bytes |
| 157 | #[allow(dead_code)] // ROADMAP v0.2.0 - Peak memory tracking (see ROADMAP.md §1) |
| 158 | pub fn peak(&self) -> usize { |
| 159 | self.peak.load(Ordering::SeqCst) |
| 160 | } |
| 161 | |
| 162 | /// Get memory limit in bytes |
| 163 | #[allow(dead_code)] // ROADMAP v0.2.0 - Memory limit accessor (see ROADMAP.md §1) |