Public Member Functions

xl7::memory::Status Class Reference

#include <Status.h>

List of all members.

Public Member Functions

 Status (void)
 ~Status (void)
unsigned GetPhysicalMemoryLoad () const
unsigned __int64 GetPhysicalMemoryTotal () const
unsigned __int64 GetPhysicalMemoryAvailable () const
unsigned __int64 GetPageFileTotal () const
unsigned __int64 GetPageFileAvailable () const
unsigned __int64 GetVirtualMemoryTotal () const
unsigned __int64 GetVirtualMemoryAvailable () const
void Log ()

Detailed Description

Contains info about the current status of both physical and virtual memory. Have a look at the MEMORYSTATUSEX structure (see http://msdn.microsoft.com/en-us/library/aa366770(VS.85).aspx).


Constructor & Destructor Documentation

xl7::memory::Status::Status ( void   ) 

Default constructor.

xl7::memory::Status::~Status ( void   ) 

Destructor.


Member Function Documentation

unsigned __int64 xl7::memory::Status::GetPageFileAvailable (  )  const [inline]

Returns the maximum amount of memory that can be committed, in bytes.

unsigned __int64 xl7::memory::Status::GetPageFileTotal (  )  const [inline]

Returns the current committed memory limit, in bytes.

unsigned __int64 xl7::memory::Status::GetPhysicalMemoryAvailable (  )  const [inline]

Returns the amount of physical memory currently available, in bytes.

unsigned xl7::memory::Status::GetPhysicalMemoryLoad (  )  const [inline]

Returns the approximate percentage (0 to 100) of physical memory in use.

unsigned __int64 xl7::memory::Status::GetPhysicalMemoryTotal (  )  const [inline]

Returns the amount of actual physical memory, in bytes.

unsigned __int64 xl7::memory::Status::GetVirtualMemoryAvailable (  )  const [inline]

Returns the amount of unreserved and uncommitted memory currently in the user-mode portion of the virtual address space, in bytes.

unsigned __int64 xl7::memory::Status::GetVirtualMemoryTotal (  )  const [inline]

Returns the size of the user-mode portion of the virtual address space, in bytes.

void xl7::memory::Status::Log (  ) 

Logs the memory status represented by this structure to the standard logger.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines