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

Method record_buffer_allocation

src/protocol/memory_monitor.rs:163–166  ·  view source on GitHub ↗

Record buffer pool memory allocation

(&self, bytes: u64)

Source from the content-addressed store, hash-verified

161
162 /// Record buffer pool memory allocation
163 pub fn record_buffer_allocation(&self, bytes: u64) {
164 self.buffer_pool_bytes.fetch_add(bytes, Ordering::Relaxed);
165 self.check_memory_pressure();
166 }
167
168 /// Record buffer pool memory deallocation
169 pub fn record_buffer_deallocation(&self, bytes: u64) {

Callers 6

get_bufferMethod · 0.80
record_buffer_allocationFunction · 0.80
test_memory_deallocationFunction · 0.80
test_stats_resetFunction · 0.80

Calls 1

check_memory_pressureMethod · 0.45

Tested by 4

test_memory_deallocationFunction · 0.64
test_stats_resetFunction · 0.64