(&self, f: &mut std::fmt::Formatter<'_>)
| 43 | |
| 44 | impl std::fmt::Debug for GlobalCounter { |
| 45 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 46 | f.debug_struct("GlobalCounter") |
| 47 | .field("allocated", &self.allocated.load(Ordering::Relaxed)) |
| 48 | .field("ceiling", &self.ceiling) |
| 49 | .finish() |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | /// A named budget with an atomic allocated counter. |