2005/5/9

     
 

class core_memtrace

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::lang::sys::core_memtrace Class Reference

#include <core_memtrace.h>

List of all members.

Public Types

typedef core_vector< core_tracememTraceMemContainerType
typedef core_vector< core_tracemem * > TraceMemPtrContainerType
typedef core_vector< MergedTraceMergedTraces

Public Member Functions

 core_memtrace (bool memLeakOnly=true)
 ~core_memtrace ()
void onAlloc (void *ptr, size_t size, int btOffset, AllocatedType type)
void onFree (void *ptr, int btOffset)
void flushFreed ()
void reportUnfreed (int reportFlags=MTRFUnfreed)
 combination of enum ReportFlags

void report (core_tracemem &tm)
void reportPointer (void *ptr, bool firstOnly=true, bool recursive=true)
int getAllocatedCount (bool recursive=false)

Static Public Member Functions

void * OnAlloc (void *ptr, size_t size, int btOffset, AllocatedType type)
void * OnFree (void *ptr, int btOffset)

Public Attributes

TraceMemContainerType _traces
core_mutex _mutex
core_memtracepreviousMemTrace
bool _removeOnFree

Static Public Attributes

core_memtraceactiveMemTrace

Protected Member Functions

void _getElements (TraceMemPtrContainerType &collected, int flags)
void _reportUnfreed (TraceMemPtrContainerType &collected, int reportFlags)
void _eliminateSameBt (TraceMemPtrContainerType &collected, MergedTraces &merged)
bool _checkSameBt (core_tracemem &tm, MergedTraces &merged)
void _filterRoot (TraceMemPtrContainerType &collected, int reportFlags)
void _reportMerged (MergedTraces &merged, int reportFlags)


Member Typedef Documentation

typedef core_vector<MergedTrace> acdk::lang::sys::core_memtrace::MergedTraces
 

typedef core_vector<core_tracemem> acdk::lang::sys::core_memtrace::TraceMemContainerType
 

typedef core_vector<core_tracemem*> acdk::lang::sys::core_memtrace::TraceMemPtrContainerType
 


Constructor & Destructor Documentation

acdk::lang::sys::core_memtrace::core_memtrace bool  memLeakOnly = true  )  [inline]
 

acdk::lang::sys::core_memtrace::~core_memtrace  )  [inline]
 


Member Function Documentation

bool acdk::lang::sys::core_memtrace::_checkSameBt core_tracemem tm,
MergedTraces merged
[protected]
 

void acdk::lang::sys::core_memtrace::_eliminateSameBt TraceMemPtrContainerType collected,
MergedTraces merged
[protected]
 

void acdk::lang::sys::core_memtrace::_filterRoot TraceMemPtrContainerType collected,
int  reportFlags
[protected]
 

void acdk::lang::sys::core_memtrace::_getElements TraceMemPtrContainerType collected,
int  flags
[protected]
 

Parameters:
collected collection of all core_tracemem
flags combination of enum ReportFlags

void acdk::lang::sys::core_memtrace::_reportMerged MergedTraces merged,
int  reportFlags
[protected]
 

void acdk::lang::sys::core_memtrace::_reportUnfreed TraceMemPtrContainerType collected,
int  reportFlags
[protected]
 

void acdk::lang::sys::core_memtrace::flushFreed  ) 
 

int acdk::lang::sys::core_memtrace::getAllocatedCount bool  recursive = false  ) 
 

void* acdk::lang::sys::core_memtrace::OnAlloc void *  ptr,
size_t  size,
int  btOffset,
AllocatedType  type
[inline, static]
 

void acdk::lang::sys::core_memtrace::onAlloc void *  ptr,
size_t  size,
int  btOffset,
AllocatedType  type
 

void* acdk::lang::sys::core_memtrace::OnFree void *  ptr,
int  btOffset
[inline, static]
 

void acdk::lang::sys::core_memtrace::onFree void *  ptr,
int  btOffset
 

void acdk::lang::sys::core_memtrace::report core_tracemem tm  ) 
 

void acdk::lang::sys::core_memtrace::reportPointer void *  ptr,
bool  firstOnly = true,
bool  recursive = true
 

void acdk::lang::sys::core_memtrace::reportUnfreed int  reportFlags = MTRFUnfreed  ) 
 

combination of enum ReportFlags


Member Data Documentation

core_mutex acdk::lang::sys::core_memtrace::_mutex
 

bool acdk::lang::sys::core_memtrace::_removeOnFree
 

TraceMemContainerType acdk::lang::sys::core_memtrace::_traces
 

core_memtrace* acdk::lang::sys::core_memtrace::activeMemTrace [static]
 

core_memtrace* acdk::lang::sys::core_memtrace::previousMemTrace