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

Method record_message_allocation

src/protocol/memory_monitor.rs:174–177  ·  view source on GitHub ↗

Record message construction memory usage

(&self, bytes: u64)

Source from the content-addressed store, hash-verified

172
173 /// Record message construction memory usage
174 pub fn record_message_allocation(&self, bytes: u64) {
175 self.message_bytes.fetch_add(bytes, Ordering::Relaxed);
176 self.check_memory_pressure();
177 }
178
179 /// Record message memory deallocation
180 pub fn record_message_deallocation(&self, bytes: u64) {

Callers 3

test_stats_resetFunction · 0.80

Calls 1

check_memory_pressureMethod · 0.45

Tested by 2

test_stats_resetFunction · 0.64