(&self, bytes: usize)
| 179 | /// debt. |
| 180 | #[inline] |
| 181 | pub fn mark_external_allocation(&self, bytes: usize) { |
| 182 | cell_update(&self.0.total_external_bytes, |b| b.saturating_add(bytes)); |
| 183 | cell_update(&self.0.allocated_external_bytes, |b| { |
| 184 | b.saturating_add(bytes) |
| 185 | }); |
| 186 | } |
| 187 | |
| 188 | /// Call to mark that bytes which have been marked as allocated with |
| 189 | /// `Metrics::mark_external_allocation` have been since deallocated. |
no test coverage detected