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 deepnes of stack information
 trace - array of pointers
 return value =  min(stack deepnes, 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()

Author: M.Ivanov 18/06/2007 -- Anar Manafov (A.Manafov@gsi.de) 28/04/2008
Last change: root/memstat:$Name$:$Id: TMemStatDepend.h 24354 2008-06-18 16:10:18Z anar $
Last generated: 2008-06-25 08:49
Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.