memory_detect.h 472 B

123456789101112131415161718192021
  1. // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "common/common_types.h"
  5. namespace Common {
  6. struct MemoryInfo {
  7. u64 TotalPhysicalMemory{};
  8. u64 TotalSwapMemory{};
  9. };
  10. /**
  11. * Gets the memory info of the host system
  12. * @return Reference to a MemoryInfo struct with the physical and swap memory sizes in bytes
  13. */
  14. [[nodiscard]] const MemoryInfo& GetMemInfo();
  15. } // namespace Common