mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
9a36d8600c
Logs both physical memory and swapfile sizes, this is useful for support.
22 lines
477 B
C++
22 lines
477 B
C++
// 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
|