Get current buffer pool statistics
(&self)
| 277 | |
| 278 | /// Get current buffer pool statistics |
| 279 | pub fn get_stats(&self) -> BufferPoolStats { |
| 280 | let inner = self.inner.lock(); |
| 281 | let mut stats = inner.stats.clone(); |
| 282 | stats.current_pool_size = inner.buffers.len(); |
| 283 | stats |
| 284 | } |
| 285 | |
| 286 | /// Force cleanup of old buffers |
| 287 | pub fn cleanup(&self) { |