Add API logging for SBDebugger::MemoryPressureDetected.

llvm-svn: 158159
This commit is contained in:
Jim Ingham 2012-06-07 19:08:07 +00:00
parent 55d1145bd5
commit aebdf1bed2
1 changed files with 7 additions and 0 deletions

View File

@ -147,7 +147,14 @@ SBDebugger::MemoryPressureDetected ()
// non-mandatory. We have seen deadlocks with this function when called
// so we need to safeguard against this until we can determine what is
// causing the deadlocks.
LogSP log (GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
const bool mandatory = false;
if (log)
{
log->Printf ("SBDebugger::MemoryPressureDetected (), mandatory = %d", mandatory);
}
ModuleList::RemoveOrphanSharedModules(mandatory);
}