Exposed total page count.

This commit is contained in:
gibbed 2016-06-21 10:10:08 -05:00
parent d07e16b056
commit 16a15bab98
2 changed files with 3 additions and 0 deletions

View File

@ -551,6 +551,8 @@ void BaseHeap::DumpMap() {
}
}
uint32_t BaseHeap::GetTotalPageCount() { return uint32_t(page_table_.size()); }
uint32_t BaseHeap::GetUnreservedPageCount() {
auto global_lock = global_critical_region_.Acquire();
uint32_t count = 0;

View File

@ -101,6 +101,7 @@ class BaseHeap {
// Dumps information about all allocations within the heap to the log.
void DumpMap();
uint32_t GetTotalPageCount();
uint32_t GetUnreservedPageCount();
// Allocates pages with the given properties and allocation strategy.