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

Method force_cleanup

src/protocol/memory_monitor.rs:358–370  ·  view source on GitHub ↗

Force a memory cleanup

(&self)

Source from the content-addressed store, hash-verified

356
357 /// Force a memory cleanup
358 pub fn force_cleanup(&self) {
359 // Bypass rate limiting for forced cleanup
360 self.cleanup_events.fetch_add(1, Ordering::Relaxed);
361
362 // Update stats
363 {
364 let mut stats = self.stats.lock();
365 stats.last_cleanup = Some(Instant::now());
366 }
367
368 // Execute callbacks directly
369 self.execute_cleanup_callbacks(false);
370 }
371
372 /// Enable or disable monitoring
373 pub fn set_monitoring_active(&self, active: bool) {

Callers 1

test_cleanup_callbacksFunction · 0.80

Calls 1

Tested by 1

test_cleanup_callbacksFunction · 0.64