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
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits