Get statistics for all generations
(&self)
| 253 | |
| 254 | /// Get statistics for all generations |
| 255 | pub fn get_stats(&self) -> [GcStats; 3] { |
| 256 | [ |
| 257 | self.generations[0].stats(), |
| 258 | self.generations[1].stats(), |
| 259 | self.generations[2].stats(), |
| 260 | ] |
| 261 | } |
| 262 | |
| 263 | /// Track a new object (add to gen0). |
| 264 | /// O(1) — intrusive linked list push_front, no hashing. |