(&self)
| 94 | } |
| 95 | |
| 96 | pub fn stats(&self) -> GcStats { |
| 97 | let guard = self.stats.lock(); |
| 98 | GcStats { |
| 99 | collections: guard.collections, |
| 100 | collected: guard.collected, |
| 101 | uncollectable: guard.uncollectable, |
| 102 | candidates: guard.candidates, |
| 103 | duration: guard.duration, |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | pub fn update_stats( |
| 108 | &self, |