diff options
| author | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-05-17 14:45:12 -0400 |
|---|---|---|
| committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-05-17 14:45:12 -0400 |
| commit | c02daca95c8e95d50b98323f718393cd904fa51f (patch) | |
| tree | 65714fc37ebf294332c533db8b2dcefb67ef2562 /src/common/memory_detect.h | |
| parent | c5fbedf14c284bedcd2a56c3268fbcec0cad3647 (diff) | |
main: Log host system memory parameters
Logs both physical memory and swapfile sizes, this is useful for support.
Diffstat (limited to 'src/common/memory_detect.h')
| -rw-r--r-- | src/common/memory_detect.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/common/memory_detect.h b/src/common/memory_detect.h new file mode 100644 index 0000000000..a73c0f3f4c --- /dev/null +++ b/src/common/memory_detect.h @@ -0,0 +1,22 @@ +// Copyright 2020 yuzu Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "common/common_types.h" + +namespace Common { + +struct MemoryInfo { + u64 TotalPhysicalMemory{}; + u64 TotalSwapMemory{}; +}; + +/** + * Gets the memory info of the host system + * @return Reference to a MemoryInfo struct with the physical and swap memory sizes in bytes + */ +const MemoryInfo& GetMemInfo(); + +} // namespace Common
\ No newline at end of file |
