<rdar://problem/13415471>

Don't get dirty page size if we are not going to send it back

llvm-svn: 176992
This commit is contained in:
Han Ming Ong 2013-03-13 22:51:04 +00:00
parent 169773f7c7
commit 0c27cb7fa1
1 changed files with 6 additions and 6 deletions

View File

@ -413,12 +413,12 @@ MachVMMemory::GetMemoryProfile(DNBProfileDataScanType scanType, task_t task, str
rsize = ti.resident_size;
vsize = ti.virtual_size;
}
if (scanType & eProfileMemoryDirtyPage)
{
// This uses vmmap strategy. We don't use the returned rsize for now. We prefer to match top's version since that's what we do for the rest of the metrics.
GetRegionSizes(task, rsize, dirty_size);
if (scanType & eProfileMemoryDirtyPage)
{
// This uses vmmap strategy. We don't use the returned rsize for now. We prefer to match top's version since that's what we do for the rest of the metrics.
GetRegionSizes(task, rsize, dirty_size);
}
}
return true;