ROOT logo
ROOT » MISC » MEMSTAT » TMemStatDepend

class TMemStatDepend


  TMemStatDepend - non standard C++ functions - Needed to make
  memory statistic (Used by TMemStatManager)

  To be implemented for differnt platoforms.

Function Members (Methods)

public:
TMemStatDepend()
TMemStatDepend(const TMemStatDepend&)
~TMemStatDepend()
static size_tBacktrace(void** trace, size_t size, Bool_t _bUseGNUBuildinBacktrace = kFALSE)
static char**BacktraceSymbols(void** trace, size_t size)
static voidDemangle(char* codeInfo, TString& str)
static TMemStatDepend::FreeHookFunc_tGetFreeHook()
static TMemStatDepend::MallocHookFunc_tGetMallocHook()
static voidGetSymbols(void* pFunction, TString& strInfo, TString& strLib, TString& strFun, TString& strLine)
TMemStatDepend&operator=(const TMemStatDepend&)
static voidSetFreeHook(TMemStatDepend::FreeHookFunc_t p)
static voidSetMallocHook(TMemStatDepend::MallocHookFunc_t p)

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void SetMallocHook(TMemStatDepend::MallocHookFunc_t p)
 Set pointer to function replacing alloc function
void SetFreeHook(TMemStatDepend::FreeHookFunc_t p)
 Set pointer to function replacing free function
size_t Backtrace(void** trace, size_t size, Bool_t _bUseGNUBuildinBacktrace = kFALSE)
 Get the backtrace
 dsize - maximal deepness of stack information
 trace - array of pointers
 return value =  min(stack deepness, dsize)
char** BacktraceSymbols(void** trace, size_t size)
 TODO: Comment me
void GetSymbols(void* pFunction, TString& strInfo, TString& strLib, TString& strFun, TString& strLine)
 get the name of the function and library
void Demangle(char* codeInfo, TString& str)
    get the name of the function and library
MallocHookFunc_t GetMallocHook()
FreeHookFunc_t GetFreeHook()