main: Log host system memory parameters
Logs both physical memory and swapfile sizes, this is useful for support.
This commit is contained in:
parent
65010607b7
commit
9a36d8600c
4 changed files with 86 additions and 0 deletions
22
src/common/memory_detect.h
Normal file
22
src/common/memory_detect.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue