Maintain memory allocation and deallocation traces. More...
#include <DAGHMemoryTrace.h>
Public Member Functions | |
DAGHMemoryTrace () | |
~DAGHMemoryTrace () | |
Static Public Member Functions | |
static void | alloc (const unsigned size) |
static void | free (const unsigned size) |
Static Public Attributes | |
static unsigned | alloc_cnt = 0 |
static unsigned | free_cnt = 0 |
Maintain memory allocation and deallocation traces.
DAGHMemoryTrace::DAGHMemoryTrace | ( | ) | [inline] |
static void DAGHMemoryTrace::alloc | ( | const unsigned | size | ) | [inline, static] |
static void DAGHMemoryTrace::free | ( | const unsigned | size | ) | [inline, static] |
References free_cnt.
Referenced by GridData< Type, 3 >::allocate(), GridData< Type, 2 >::allocate(), GridData< Type, 1 >::allocate(), GridData< Type, 3 >::deallocate(), GridData< Type, 2 >::deallocate(), GridData< Type, 1 >::deallocate(), DataBucketVoid::~DataBucketVoid(), GridData< Type, 3 >::~GridData(), GridData< Type, 2 >::~GridData(), and GridData< Type, 1 >::~GridData().
unsigned DAGHMemoryTrace::alloc_cnt = 0 [static] |
Referenced by alloc(), and ~DAGHMemoryTrace().
unsigned DAGHMemoryTrace::free_cnt = 0 [static] |
Referenced by free(), and ~DAGHMemoryTrace().