#include <Wm4Memory.h>
Classes | |
struct | Block |
Static Public Member Functions | |
static void * | Allocate (size_t uiSize, char *acFile, unsigned int uiLine, bool bIsArray) |
static void | Deallocate (char *pcAddr, bool bIsArray) |
static void | GenerateReport (const char *acFilename) |
static const Block * | GetHead () |
static size_t | GetHistogram (int i) |
static size_t | GetMaxAllocatedBytes () |
static size_t | GetMaxBlockSize () |
static size_t | GetNumBlocks () |
static size_t | GetNumBytes () |
static size_t | GetNumDeleteCalls () |
static size_t | GetNumNewCalls () |
static const Block * | GetTail () |
static void | InsertBlock (Block *pkBlock) |
static size_t & | MaxAllowedBytes () |
static void | RemoveBlock (Block *pkBlock) |
static bool & | TrackSizes () |
Definition at line 38 of file Wm4Memory.h.
void * Memory::Allocate | ( | size_t | uiSize, | |
char * | acFile, | |||
unsigned int | uiLine, | |||
bool | bIsArray | |||
) | [static] |
Definition at line 59 of file Wm4Memory.cpp.
References Wm4::Memory::Block::File, InsertBlock(), Wm4::Memory::Block::IsArray, Wm4::Memory::Block::Line, and Wm4::Memory::Block::Size.
Referenced by operator new(), and operator new[]().
void Memory::Deallocate | ( | char * | pcAddr, | |
bool | bIsArray | |||
) | [static] |
Definition at line 128 of file Wm4Memory.cpp.
References boost::numeric::bindings::umfpack::free(), Wm4::Memory::Block::IsArray, RemoveBlock(), and Wm4::Memory::Block::Size.
Referenced by operator delete(), and operator delete[]().
void Memory::GenerateReport | ( | const char * | acFilename | ) | [static] |
Definition at line 204 of file Wm4Memory.cpp.
References Wm4::Memory::Block::File, UnitParser::if(), Py::int, Wm4::Memory::Block::Next, and Wm4::Memory::Block::Size.
const Memory::Block * Wm4::Memory::GetHead | ( | ) | [inline, static] |
Definition at line 70 of file Wm4Memory.inl.
size_t Wm4::Memory::GetHistogram | ( | int | i | ) | [inline, static] |
Definition at line 60 of file Wm4Memory.inl.
size_t Wm4::Memory::GetMaxAllocatedBytes | ( | ) | [inline, static] |
Definition at line 50 of file Wm4Memory.inl.
size_t Wm4::Memory::GetMaxBlockSize | ( | ) | [inline, static] |
Definition at line 55 of file Wm4Memory.inl.
size_t Wm4::Memory::GetNumBlocks | ( | ) | [inline, static] |
Definition at line 40 of file Wm4Memory.inl.
size_t Wm4::Memory::GetNumBytes | ( | ) | [inline, static] |
Definition at line 45 of file Wm4Memory.inl.
size_t Wm4::Memory::GetNumDeleteCalls | ( | ) | [inline, static] |
Definition at line 35 of file Wm4Memory.inl.
size_t Wm4::Memory::GetNumNewCalls | ( | ) | [inline, static] |
Definition at line 30 of file Wm4Memory.inl.
const Memory::Block * Wm4::Memory::GetTail | ( | ) | [inline, static] |
Definition at line 75 of file Wm4Memory.inl.
void Memory::InsertBlock | ( | Block * | pkBlock | ) | [static] |
Definition at line 164 of file Wm4Memory.cpp.
References Wm4::Memory::Block::Next, and Wm4::Memory::Block::Prev.
Referenced by Allocate().
size_t & Wm4::Memory::MaxAllowedBytes | ( | ) | [inline, static] |
Definition at line 20 of file Wm4Memory.inl.
void Memory::RemoveBlock | ( | Block * | pkBlock | ) | [static] |
Definition at line 183 of file Wm4Memory.cpp.
References Wm4::Memory::Block::Next, and Wm4::Memory::Block::Prev.
Referenced by Deallocate().
bool & Wm4::Memory::TrackSizes | ( | ) | [inline, static] |
Definition at line 25 of file Wm4Memory.inl.