Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
MemoryCounterClass Class Reference

Public Member Functions

 MemoryCounterClass (void)
 
void Memory_Allocated (int size)
 
void Memory_Released (int size)
 
int Get_Current_Allocated_Memory (void)
 
int Get_Peak_Allocated_Memory (void)
 

Protected Attributes

int CurrentAllocation
 
int PeakAllocation
 

Detailed Description

MemoryCounterClass This object will store statistics for each memory category. It can provide things like the current amount of allocated memory and the peak amount of allocated memory.

Definition at line 129 of file wwmemlog.cpp.

Constructor & Destructor Documentation

◆ MemoryCounterClass()

MemoryCounterClass::MemoryCounterClass ( void )
inline

Definition at line 132 of file wwmemlog.cpp.

Member Function Documentation

◆ Get_Current_Allocated_Memory()

int MemoryCounterClass::Get_Current_Allocated_Memory ( void )
inline

Definition at line 137 of file wwmemlog.cpp.

◆ Get_Peak_Allocated_Memory()

int MemoryCounterClass::Get_Peak_Allocated_Memory ( void )
inline

Definition at line 138 of file wwmemlog.cpp.

◆ Memory_Allocated()

void MemoryCounterClass::Memory_Allocated ( int size)
inline

Definition at line 134 of file wwmemlog.cpp.

◆ Memory_Released()

void MemoryCounterClass::Memory_Released ( int size)
inline

Definition at line 135 of file wwmemlog.cpp.

Member Data Documentation

◆ CurrentAllocation

int MemoryCounterClass::CurrentAllocation
protected

Definition at line 141 of file wwmemlog.cpp.

◆ PeakAllocation

int MemoryCounterClass::PeakAllocation
protected

Definition at line 142 of file wwmemlog.cpp.


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