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:
Ingo Weinhold 2010-06-14 23:59:38 +00:00
parent 377ecfe797
commit 0d46b36584

View File

@ -352,10 +352,8 @@ VMAddressSpace::_DumpListCommand(int argc, char** argv)
off_t areaSize = 0;
for (VMAddressSpace::AreaIterator areaIt = space->GetAreaIterator();
VMArea* area = areaIt.Next();) {
if (area->cache->type != CACHE_TYPE_NULL) {
areaCount++;
areaSize += area->Size();
}
areaCount++;
areaSize += area->Size();
}
kprintf("%p %6" B_PRId32 " %#010" B_PRIxADDR " %#10" B_PRIxADDR
" %10" B_PRId32 " %10" B_PRIdOFF "\n", space, space->ID(),