MCPcopy Create free account
hub / github.com/erans/pgsqlite / get_stats

Method get_stats

src/protocol/buffer_pool.rs:279–284  ·  view source on GitHub ↗

Get current buffer pool statistics

(&self)

Source from the content-addressed store, hash-verified

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) {

Callers 6

test_buffer_cleanupFunction · 0.45
test_global_buffer_poolFunction · 0.45

Calls 2

cloneMethod · 0.45
lenMethod · 0.45

Tested by 6

test_buffer_cleanupFunction · 0.36
test_global_buffer_poolFunction · 0.36