2020-05-17 20:45:12 +02:00
|
|
|
// 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
|
|
|
|
*/
|
2020-08-14 15:38:45 +02:00
|
|
|
[[nodiscard]] const MemoryInfo& GetMemInfo();
|
2020-05-17 20:45:12 +02:00
|
|
|
|
|
|
|
} // namespace Common
|