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

Function global_memory_monitor

src/protocol/memory_monitor.rs:404–409  ·  view source on GitHub ↗

Get the global memory monitor instance

()

Source from the content-addressed store, hash-verified

402
403/// Get the global memory monitor instance
404pub fn global_memory_monitor() -> &'static MemoryMonitor {
405 GLOBAL_MEMORY_MONITOR.get_or_init(|| {
406 let config = MemoryMonitorConfig::from_env();
407 MemoryMonitor::with_config(config)
408 })
409}
410
411/// Record buffer allocation in the global monitor
412pub fn record_buffer_allocation(bytes: u64) {

Callers 15

check_memory_pressureMethod · 0.85
getMethod · 0.85
removeMethod · 0.85
clearMethod · 0.85
cleanupMethod · 0.85
evict_lru_entryMethod · 0.85
get_bufferMethod · 0.85
return_bufferMethod · 0.85

Calls

no outgoing calls

Tested by 1