diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-31 01:11:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-31 01:11:17 +0100 |
commit | d9b7bc44748908d49d59433870211df8e1c32581 (patch) | |
tree | 37faebdb5dcdd6fb3e6eabbd9e81290ed94396df /src/core/hle/kernel/svc.cpp | |
parent | Merge pull request #2303 from lioncash/thread (diff) | |
parent | kernel/process: Report total physical memory used to svcGetInfo (diff) | |
download | yuzu-d9b7bc44748908d49d59433870211df8e1c32581.tar yuzu-d9b7bc44748908d49d59433870211df8e1c32581.tar.gz yuzu-d9b7bc44748908d49d59433870211df8e1c32581.tar.bz2 yuzu-d9b7bc44748908d49d59433870211df8e1c32581.tar.lz yuzu-d9b7bc44748908d49d59433870211df8e1c32581.tar.xz yuzu-d9b7bc44748908d49d59433870211df8e1c32581.tar.zst yuzu-d9b7bc44748908d49d59433870211df8e1c32581.zip |
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r-- | src/core/hle/kernel/svc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 11796e5e5..c408d4e22 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -709,7 +709,7 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id) HeapRegionBaseAddr = 4, HeapRegionSize = 5, TotalMemoryUsage = 6, - TotalHeapUsage = 7, + TotalPhysicalMemoryUsed = 7, IsCurrentProcessBeingDebugged = 8, RegisterResourceLimit = 9, IdleTickCount = 10, @@ -745,7 +745,7 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id) case GetInfoType::NewMapRegionBaseAddr: case GetInfoType::NewMapRegionSize: case GetInfoType::TotalMemoryUsage: - case GetInfoType::TotalHeapUsage: + case GetInfoType::TotalPhysicalMemoryUsed: case GetInfoType::IsVirtualAddressMemoryEnabled: case GetInfoType::PersonalMmHeapUsage: case GetInfoType::TitleId: @@ -805,8 +805,8 @@ static ResultCode GetInfo(u64* result, u64 info_id, u64 handle, u64 info_sub_id) *result = process->VMManager().GetTotalMemoryUsage(); return RESULT_SUCCESS; - case GetInfoType::TotalHeapUsage: - *result = process->VMManager().GetCurrentHeapSize(); + case GetInfoType::TotalPhysicalMemoryUsed: + *result = process->GetTotalPhysicalMemoryUsed(); return RESULT_SUCCESS; case GetInfoType::IsVirtualAddressMemoryEnabled: |