OpenRDM
An open-source library for reduced-density matrix-based analysis and computation
mcpdft::LibMem Class Reference

#include <libMem.h>

Public Member Functions

void query_system_memory (const struct sysinfo *info)
 Query memory information from linux. More...
 
unsigned long get_mem_total ()
 Get total memory using C++ function. More...
 

Private Attributes

long uptime_
 Uptime run since boot in seconds. More...
 
unsigned long loads_ [3]
 1, 5 and 15 minutes' load averages More...
 
unsigned long totalram_
 Total usable main memory size. More...
 
unsigned long freeram_
 Available memory size. More...
 
unsigned long sharedram_
 Amount of shared memory. More...
 
unsigned long bufferram_
 Buffer memory. More...
 
unsigned long totalswap_
 Total swap space size. More...
 
unsigned long freeswap_
 Available swap space. More...
 
unsigned short num_procs_
 Number of ongoing processes. More...
 
unsigned long totalhigh_
 Total high memory size. More...
 
unsigned long freehigh_
 Available high memory size. More...
 
unsigned int mem_unit_
 Memory unit size in bytes. More...
 
char _f [20-2 *sizeof(long)-sizeof(int)]
 Padding for libc5. More...
 

Member Function Documentation

unsigned long mcpdft::LibMem::get_mem_total ( )

Get total memory using C++ function.

void mcpdft::LibMem::query_system_memory ( const struct sysinfo *  info)

Query memory information from linux.

Member Data Documentation

char mcpdft::LibMem::_f[20-2 *sizeof(long)-sizeof(int)]
private

Padding for libc5.

unsigned long mcpdft::LibMem::bufferram_
private

Buffer memory.

unsigned long mcpdft::LibMem::freehigh_
private

Available high memory size.

unsigned long mcpdft::LibMem::freeram_
private

Available memory size.

unsigned long mcpdft::LibMem::freeswap_
private

Available swap space.

unsigned long mcpdft::LibMem::loads_[3]
private

1, 5 and 15 minutes' load averages

unsigned int mcpdft::LibMem::mem_unit_
private

Memory unit size in bytes.

unsigned short mcpdft::LibMem::num_procs_
private

Number of ongoing processes.

unsigned long mcpdft::LibMem::sharedram_
private

Amount of shared memory.

unsigned long mcpdft::LibMem::totalhigh_
private

Total high memory size.

unsigned long mcpdft::LibMem::totalram_
private

Total usable main memory size.

unsigned long mcpdft::LibMem::totalswap_
private

Total swap space size.

long mcpdft::LibMem::uptime_
private

Uptime run since boot in seconds.


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