2020-05-17 14:45:12 -04: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 {
|
2022-11-15 11:16:45 +01:00
|
|
|
u64 total_physical_memory{};
|
|
|
|
u64 total_swap_memory{};
|
2020-05-17 14:45:12 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the memory info of the host system
|
|
|
|
* @return Reference to a MemoryInfo struct with the physical and swap memory sizes in bytes
|
|
|
|
*/
|
2022-11-15 11:16:45 +01:00
|
|
|
[[nodiscard]] const MemoryInfo GetMemInfo();
|
2020-05-17 14:45:12 -04:00
|
|
|
|
2022-11-15 11:16:45 +01:00
|
|
|
} // namespace Common
|