20#if defined(__x86_64__) || defined(_M_X64)
22#elif defined(__i386__) || defined(_M_IX86)
24#elif defined(__aarch64__) || defined(_M_ARM64)
26#elif defined(__arm__) || defined(_M_ARM)
30#elif defined(__wasm__)
Portable access to system information, environment variables, files and paths.
Definition Environment.hpp:7
constexpr std::string_view getArchitecture() noexcept
Architecture the program was built for: x86_64, x86, arm64, arm, riscv, wasm or unknown.
Definition SystemInfo.hpp:18
std::uint64_t getPeakProcessMemoryUsage() noexcept
Highest physical memory used by this process so far.
std::uint64_t getAvailableDiskSpace(const std::string &path="/")
std::string getOSName()
Operating system family, such as Linux or Windows 64-bit.
std::string getHostName()
Network name of this computer, or an empty string on failure.
std::uint64_t getTotalRAM() noexcept
std::string getCpuName()
CPU model name, or an empty string if unknown.
std::uint64_t getProcessMemoryUsage() noexcept
Physical memory used by this process.
std::uint64_t getTotalDiskSpace(const std::string &path="/")
std::size_t getCpuCores() noexcept
Number of logical cores, at least 1.
std::uint64_t getAvailableRAM() noexcept