SBModule_GarbageCollectAllocatedModules#

lldb.SBModule_GarbageCollectAllocatedModules()#

Removes all modules which are no longer needed by any part of LLDB from the module cache.

This is an implementation detail exposed for testing and should not be relied upon. Use SBDebugger::MemoryPressureDetected instead to reduce LLDB’s memory consumption during execution.