ChronosMemoryUse
This class is used to control the memory used by the Library. More…
#include "ChronosMemoryUse.h"
Inherited by MemoryUse
Public Functions
Name | |
---|---|
ChronosMemoryUse() Constructs the object. |
|
~ChronosMemoryUse() Deletes the object. |
|
void | Add(iReg iType, unsigned long int len) Add bytes. |
void | Rm(iReg iType, unsigned long int len) Remove bytes. |
void | GetCurrInfo(rExt * Info) Get current memory info. |
void | GetPeakInfo(rExt * Info) Get peak memory info. |
Protected Attributes
Name | |
---|---|
unsigned long int | type_bytes Type bytes. |
unsigned long int | curr_mem Current memory [bool,int,long int,float,double]. |
unsigned long int | peak_mem Peak memory [bool,int,long int,float,double]. |
unsigned long int | curr_mem_total Total current memory in bytes. |
unsigned long int | peak_mem_total Total peak memory in bytes. |
Detailed Description
class ChronosMemoryUse;
This class is used to control the memory used by the Library.
class ChronosMemoryUse.
Public Functions Documentation
function ChronosMemoryUse
ChronosMemoryUse()
Constructs the object.
function ~ChronosMemoryUse
~ChronosMemoryUse()
Deletes the object.
function Add
void Add(
iReg iType,
unsigned long int len
)
Add bytes.
Parameters:
- iType variable type [bool,int,long int,float,double].
- len number of iType variables.
function Rm
void Rm(
iReg iType,
unsigned long int len
)
Remove bytes.
Parameters:
- iType variable type [bool,int,long int,float,double].
- len number of iType variables.
function GetCurrInfo
void GetCurrInfo(
rExt * Info
)
Get current memory info.
Parameters:
- Info Used memory [bool,int,long int,float,double,total].
function GetPeakInfo
void GetPeakInfo(
rExt * Info
)
Get peak memory info.
Parameters:
- Info Memory Peak [bool,int,long int,float,double,total].
Protected Attributes Documentation
variable type_bytes
unsigned long int type_bytes;
Type bytes.
variable curr_mem
unsigned long int curr_mem;
Current memory [bool,int,long int,float,double].
variable peak_mem
unsigned long int peak_mem;
Peak memory [bool,int,long int,float,double].
variable curr_mem_total
unsigned long int curr_mem_total;
Total current memory in bytes.
variable peak_mem_total
unsigned long int peak_mem_total;
Total peak memory in bytes.
Updated on 12 February 2021 at 11:59:50 CET