Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
RAMInfo Class Reference

#include <RAMInfo.hpp>

Public Member Functions

 RAMInfo () noexcept
 
 ~RAMInfo () noexcept=default
 
 ENIGMA_NON_COPYABLE (RAMInfo)
 
 ENIGMA_NON_MOVEABLE (RAMInfo)
 
void Update ()
 
std::size_t GetUsedRAM () const noexcept
 
std::size_t GetProcessUsedRAM () const noexcept
 
std::size_t GetFreeRAM () const noexcept
 
std::size_t GetAvailableRAM () const noexcept
 
float GetRAMUsage () noexcept
 
float GetProcessRAMUsage () noexcept
 

Detailed Description

RAMInfo class will gather information about the RAM at runtime

Definition at line 34 of file RAMInfo.hpp.

Constructor & Destructor Documentation

◆ RAMInfo()

RAMInfo::RAMInfo ( )
noexcept

◆ ~RAMInfo()

RAMInfo::~RAMInfo ( )
defaultnoexcept

Member Function Documentation

◆ ENIGMA_NON_COPYABLE()

RAMInfo::ENIGMA_NON_COPYABLE ( RAMInfo  )

◆ ENIGMA_NON_MOVEABLE()

RAMInfo::ENIGMA_NON_MOVEABLE ( RAMInfo  )

◆ GetAvailableRAM()

std::size_t RAMInfo::GetAvailableRAM ( ) const
noexcept

Returns the max available memory on the system (in bytes)

◆ GetFreeRAM()

std::size_t RAMInfo::GetFreeRAM ( ) const
noexcept

Returns the total physical memory free (in bytes)

◆ GetProcessRAMUsage()

float RAMInfo::GetProcessRAMUsage ( )
noexcept

Returns memory usage by current process (in percentage [0% -> 100%])

◆ GetProcessUsedRAM()

std::size_t RAMInfo::GetProcessUsedRAM ( ) const
noexcept

Returns the total physical memory used by this process (in bytes)

◆ GetRAMUsage()

float RAMInfo::GetRAMUsage ( )
noexcept

Returns memory usage by all processes (in percentage [0% -> 100%])

◆ GetUsedRAM()

std::size_t RAMInfo::GetUsedRAM ( ) const
noexcept

Returns the total physical memory reserved by all processes (in bytes)

◆ Update()

void RAMInfo::Update ( )

Updates the RAM status at runtime


The documentation for this class was generated from the following file: