IrrIMGUI
0.3.1
|
This is a very basic memory leak detection for Windows Systems. More...
#include <CBasicMemoryLeakDetection.h>
Public Member Functions | |
CBasicMemoryLeakDetection (void) | |
Constructor will store the current memory state. More... | |
~CBasicMemoryLeakDetection (void) | |
The Destructor will compare the current memory state with the stored one. More... | |
int | compareMemoryState (void) |
Compares the current memory state with the stored one. More... | |
void | resetMemoryState (void) |
Resets the memory state to prepare a new detection. More... | |
Private Attributes | |
bool | mWasMemoryChecked |
This is a very basic memory leak detection for Windows Systems.
When creating an object of this class, it will store the current state of the memory. And when this object is destroyed, it will compare the state of the memory with the stored one. Thus it can detect differences in memory usage.
It will not show you any more information than just the difference of the both memory states.
Definition at line 91 of file CBasicMemoryLeakDetection.h.
IrrIMGUI::Tools::CBasicMemoryLeakDetection::CBasicMemoryLeakDetection | ( | void | ) |
Constructor will store the current memory state.
Definition at line 40 of file CBasicMemoryLeakDetection.cpp.
IrrIMGUI::Tools::CBasicMemoryLeakDetection::~CBasicMemoryLeakDetection | ( | void | ) |
The Destructor will compare the current memory state with the stored one.
Definition at line 46 of file CBasicMemoryLeakDetection.cpp.
int IrrIMGUI::Tools::CBasicMemoryLeakDetection::compareMemoryState | ( | void | ) |
Compares the current memory state with the stored one.
Definition at line 59 of file CBasicMemoryLeakDetection.cpp.
void IrrIMGUI::Tools::CBasicMemoryLeakDetection::resetMemoryState | ( | void | ) |
Resets the memory state to prepare a new detection.
Definition at line 90 of file CBasicMemoryLeakDetection.cpp.
|
private |
Definition at line 111 of file CBasicMemoryLeakDetection.h.