Exposed total page count.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user