diff --git a/src/xenia/memory.cc b/src/xenia/memory.cc index 14c65002b..bbf021c66 100644 --- a/src/xenia/memory.cc +++ b/src/xenia/memory.cc @@ -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; diff --git a/src/xenia/memory.h b/src/xenia/memory.h index 67b519e3c..271f7b17c 100644 --- a/src/xenia/memory.h +++ b/src/xenia/memory.h @@ -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.