<rdar://problem/13100435>

Don't discount regions that vmmap is not discounting.

llvm-svn: 177202
This commit is contained in:
Han Ming Ong
2013-03-15 23:19:44 +00:00
parent 90d7fa12d0
commit 7b641e97ed

View File

@@ -249,10 +249,7 @@ static void GetRegionSizes(task_t task, mach_vm_size_t &rsize, mach_vm_size_t &d
// Don't count malloc stack logging data in the TOTAL VM usage lines.
if (info.user_tag == VM_MEMORY_ANALYSIS_TOOL)
should_count = false;
// Don't count system shared library region not used by this process.
if (address >= SHARED_REGION_BASE && address < (SHARED_REGION_BASE + SHARED_REGION_SIZE))
should_count = false;
address = address+size;
}