diff options
author | Jim Ingham <jingham@apple.com> | 2012-06-07 19:08:07 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2012-06-07 19:08:07 +0000 |
commit | aebdf1bed247b7bb91c3c805090f1a688a79c960 (patch) | |
tree | 30a54a2e3a73966592727f47cf6726efe57450c2 /lldb/source/API/SBDebugger.cpp | |
parent | 55d1145bd5efdd50431cf9731aea6464a443aa1d (diff) | |
download | bcm5719-llvm-aebdf1bed247b7bb91c3c805090f1a688a79c960.tar.gz bcm5719-llvm-aebdf1bed247b7bb91c3c805090f1a688a79c960.zip |
Add API logging for SBDebugger::MemoryPressureDetected.
llvm-svn: 158159
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r-- | lldb/source/API/SBDebugger.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp index ce85544dce4..c5574d0d019 100644 --- a/lldb/source/API/SBDebugger.cpp +++ b/lldb/source/API/SBDebugger.cpp @@ -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); } |