diff options
author | Lioncash <mathew1800@gmail.com> | 2019-03-29 03:59:17 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-03-29 03:59:20 +0100 |
commit | 3a846aa80f5d533a5061fcbef2736aaef8c38a66 (patch) | |
tree | a3dd29dfc5f35a4fed9d9c9855af4dbab902774f /src/core/hle/kernel/process.cpp | |
parent | kernel/process: Store the total size of the code memory loaded (diff) | |
download | yuzu-3a846aa80f5d533a5061fcbef2736aaef8c38a66.tar yuzu-3a846aa80f5d533a5061fcbef2736aaef8c38a66.tar.gz yuzu-3a846aa80f5d533a5061fcbef2736aaef8c38a66.tar.bz2 yuzu-3a846aa80f5d533a5061fcbef2736aaef8c38a66.tar.lz yuzu-3a846aa80f5d533a5061fcbef2736aaef8c38a66.tar.xz yuzu-3a846aa80f5d533a5061fcbef2736aaef8c38a66.tar.zst yuzu-3a846aa80f5d533a5061fcbef2736aaef8c38a66.zip |
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
-rw-r--r-- | src/core/hle/kernel/process.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp index 819d2cb0b..b0b7af76b 100644 --- a/src/core/hle/kernel/process.cpp +++ b/src/core/hle/kernel/process.cpp @@ -76,6 +76,10 @@ SharedPtr<ResourceLimit> Process::GetResourceLimit() const { return resource_limit; } +u64 Process::GetTotalPhysicalMemoryUsed() const { + return vm_manager.GetCurrentHeapSize() + main_thread_stack_size + code_memory_size; +} + ResultCode Process::ClearSignalState() { if (status == ProcessStatus::Exited) { LOG_ERROR(Kernel, "called on a terminated process instance."); |