VMAddressSpace::_DumpListCommand(): Sum up also null-cache areas. Those are
used e.g. by the slab allocator. The interesting part is the address space usage anyway. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37139 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
377ecfe797
commit
0d46b36584
@ -352,10 +352,8 @@ VMAddressSpace::_DumpListCommand(int argc, char** argv)
|
|||||||
off_t areaSize = 0;
|
off_t areaSize = 0;
|
||||||
for (VMAddressSpace::AreaIterator areaIt = space->GetAreaIterator();
|
for (VMAddressSpace::AreaIterator areaIt = space->GetAreaIterator();
|
||||||
VMArea* area = areaIt.Next();) {
|
VMArea* area = areaIt.Next();) {
|
||||||
if (area->cache->type != CACHE_TYPE_NULL) {
|
areaCount++;
|
||||||
areaCount++;
|
areaSize += area->Size();
|
||||||
areaSize += area->Size();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
kprintf("%p %6" B_PRId32 " %#010" B_PRIxADDR " %#10" B_PRIxADDR
|
kprintf("%p %6" B_PRId32 " %#010" B_PRIxADDR " %#10" B_PRIxADDR
|
||||||
" %10" B_PRId32 " %10" B_PRIdOFF "\n", space, space->ID(),
|
" %10" B_PRId32 " %10" B_PRIdOFF "\n", space, space->ID(),
|
||||||
|
Loading…
Reference in New Issue
Block a user