forked from OSchip/llvm-project
<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:
parent
169773f7c7
commit
0c27cb7fa1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue