[Lldb-commits] [lldb] r217084 - rdar://problem/18221417

Han Ming Ong hanming at apple.com
Wed Sep 3 15:33:37 PDT 2014


Author: hanming
Date: Wed Sep  3 17:33:37 2014
New Revision: 217084

URL: http://llvm.org/viewvc/llvm-project?rev=217084&view=rev
Log:
rdar://problem/18221417
Include compressed memory as part of gauge memory.

Modified:
    lldb/trunk/tools/debugserver/source/MacOSX/MachVMMemory.cpp

Modified: lldb/trunk/tools/debugserver/source/MacOSX/MachVMMemory.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/MachVMMemory.cpp?rev=217084&r1=217083&r2=217084&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/MachVMMemory.cpp (original)
+++ lldb/trunk/tools/debugserver/source/MacOSX/MachVMMemory.cpp Wed Sep  3 17:33:37 2014
@@ -400,7 +400,7 @@ GetPurgeableAndAnonymous(task_t task, ui
     if (kr == KERN_SUCCESS)
     {
         purgeable = vm_info.purgeable_volatile_resident;
-        anonymous = vm_info.internal - vm_info.purgeable_volatile_pmap;
+        anonymous = vm_info.internal + vm_info.compressed - vm_info.purgeable_volatile_pmap;
     }
 
 #endif





More information about the lldb-commits mailing list