2022-04-23 09:59:50 +01:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2020-05-17 19:45:12 +01:00
|
|
|
|
|
|
|
#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 14:38:45 +01:00
|
|
|
[[nodiscard]] const MemoryInfo& GetMemInfo();
|
2020-05-17 19:45:12 +01:00
|
|
|
|
|
|
|
} // namespace Common
|