Exposed total page count.
This commit is contained in:
parent
d07e16b056
commit
16a15bab98
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue