#include <TMemStatMng.h>
Inheritance diagram for memstat::TMemStatMng:
Definition at line 74 of file TMemStatMng.h.
typedef std::map<SCustomDigest, Int_t> memstat::TMemStatMng::CRCSet_t [private] |
Definition at line 75 of file TMemStatMng.h.
typedef std::map<SCustomDigest, Int_t> memstat::TMemStatMng::CRCSet_t [private] |
Definition at line 75 of file TMemStatMng.h.
memstat::TMemStatMng::TMemStatMng | ( | ) | [private] |
TMemStatMng::~TMemStatMng | ( | ) | [private, virtual] |
Definition at line 190 of file TMemStatMng.cxx.
References Disable(), fBTChecksums, fBTIDCount, GetInstance(), and TObject::Info().
memstat::TMemStatMng::TMemStatMng | ( | ) | [private] |
virtual memstat::TMemStatMng::~TMemStatMng | ( | ) | [private, virtual] |
void TMemStatMng::Enable | ( | ) |
Definition at line 230 of file TMemStatMng.cxx.
References AllocHook(), FreeHook(), GetInstance(), MacAllocHook(), MacFreeHook(), TMemStatHook::SetFreeHook(), and TMemStatHook::SetMallocHook().
Referenced by AllocHook(), FreeHook(), MacAllocHook(), and MacFreeHook().
void TMemStatMng::Disable | ( | ) |
Definition at line 246 of file TMemStatMng.cxx.
References fPreviousFreeHook, fPreviousMallocHook, GetInstance(), TMemStatHook::SetFreeHook(), and TMemStatHook::SetMallocHook().
Referenced by AllocHook(), Close(), FillTree(), FreeHook(), MacAllocHook(), MacFreeHook(), and ~TMemStatMng().
TMemStatMng * TMemStatMng::GetInstance | ( | ) | [static] |
Definition at line 116 of file TMemStatMng.cxx.
References fgInstance, and Init().
Referenced by AllocHook(), Disable(), Enable(), FillTree(), FreeHook(), G__G__MemStat_142_0_4(), G__setup_memfuncmemstatcLcLTMemStatMng(), MacAllocHook(), MacFreeHook(), and ~TMemStatMng().
void TMemStatMng::Close | ( | ) | [static] |
Definition at line 129 of file TMemStatMng.cxx.
References TTree::AutoSave(), TList::Delete(), Disable(), fDumpFile, fDumpTree, fgInstance, FillTree(), TFile::GetEND(), TTree::GetEntries(), TNamed::GetName(), TTree::GetUserInfo(), and TObject::Info().
Referenced by G__G__MemStat_142_0_5(), and G__setup_memfuncmemstatcLcLTMemStatMng().
void TMemStatMng::SetBufferSize | ( | Int_t | buffersize | ) |
Definition at line 204 of file TMemStatMng.cxx.
References fBufBtID, fBufferSize, fBufN, fBufNBytes, fBufPos, fBufTimems, fIndex, and fMustWrite.
void TMemStatMng::SetMaxCalls | ( | Int_t | maxcalls | ) |
void memstat::TMemStatMng::SetUseGNUBuiltinBacktrace | ( | Bool_t | newVal | ) | [inline] |
void TMemStatMng::Init | ( | ) | [protected] |
old free function
Definition at line 72 of file TMemStatMng.cxx.
References TList::Add(), TTimeStamp::AsDouble(), TTree::Branch(), fBeginTime, fBTCount, fBtID, fBTIDCount, fDumpFile, fDumpTree, fFAddrsList, fHbtids, fNBytes, Form(), fPos, fSysInfo, fTimems, fTimeStamp, TSystem::GetBuildCompilerVersion(), TSystem::GetBuildNode(), TSystem::GetFlagsDebug(), TSystem::GetFlagsOpt(), TSystem::GetPid(), TTree::GetUserInfo(), gSystem, kTRUE, TTree::SetAutoSave(), TH1::SetDirectory(), TCollection::SetName(), and TCollection::SetOwner().
Referenced by GetInstance().
void TMemStatMng::AddPointer | ( | void * | ptr, | |
Int_t | size | |||
) | [protected] |
Definition at line 426 of file TMemStatMng.cxx.
References TTimeStamp::AsDouble(), TObject::Error(), fBeginTime, fBTIDCount, fBufBtID, fBufferSize, fBufN, fBufNBytes, fBufPos, fBufTimems, FillTree(), fTimeStamp, fUseGNUBuiltinBacktrace, memstat::g_BTStackLevel, memstat::g_digestSize, generateBTID(), memstat::getBacktrace(), md5, and TTimeStamp::Set().
Referenced by AllocHook(), FreeHook(), MacAllocHook(), and MacFreeHook().
void TMemStatMng::FillTree | ( | ) | [protected] |
Definition at line 463 of file TMemStatMng.cxx.
References Disable(), fBtID, fBufBtID, fBufN, fBufNBytes, fBufPos, fBufTimems, fDumpTree, TTree::Fill(), fIndex, fMaxCalls, fMustWrite, fNBytes, fPos, fTimems, TTree::GetEntries(), GetInstance(), indi, indj, j, kFALSE, kTRUE, and TMath::Sort().
Referenced by AddPointer(), and Close().
void * TMemStatMng::AllocHook | ( | size_t | size, | |
const void * | ||||
) | [static, protected] |
Definition at line 299 of file TMemStatMng.cxx.
References AddPointer(), Disable(), Enable(), GetInstance(), malloc(), and result().
Referenced by Enable().
void TMemStatMng::FreeHook | ( | void * | ptr, | |
const void * | ||||
) | [static, protected] |
Definition at line 321 of file TMemStatMng.cxx.
References AddPointer(), Disable(), Enable(), free(), and GetInstance().
Referenced by Enable().
void TMemStatMng::MacAllocHook | ( | void * | ptr, | |
size_t | size | |||
) | [static, protected] |
Definition at line 263 of file TMemStatMng.cxx.
References AddPointer(), Disable(), Enable(), and GetInstance().
Referenced by Enable().
void TMemStatMng::MacFreeHook | ( | void * | ptr | ) | [static, protected] |
Definition at line 281 of file TMemStatMng.cxx.
References AddPointer(), Disable(), Enable(), and GetInstance().
Referenced by Enable().
Int_t TMemStatMng::generateBTID | ( | UChar_t * | CRCdigest, | |
Int_t | stackEntries, | |||
void ** | stackPointers | |||
) | [protected] |
Definition at line 341 of file TMemStatMng.cxx.
References memstat::SCustomDigest::fValue, memstat::g_digestSize, and i.
Referenced by AddPointer().
void memstat::TMemStatMng::Enable | ( | ) |
void memstat::TMemStatMng::Disable | ( | ) |
static TMemStatMng* memstat::TMemStatMng::GetInstance | ( | ) | [static] |
static void memstat::TMemStatMng::Close | ( | ) | [static] |
void memstat::TMemStatMng::SetBufferSize | ( | Int_t | buffersize | ) |
void memstat::TMemStatMng::SetMaxCalls | ( | Int_t | maxcalls | ) |
void memstat::TMemStatMng::SetUseGNUBuiltinBacktrace | ( | Bool_t | newVal | ) | [inline] |
void memstat::TMemStatMng::Init | ( | ) | [protected] |
old free function
void memstat::TMemStatMng::AddPointer | ( | void * | ptr, | |
Int_t | size | |||
) | [protected] |
void memstat::TMemStatMng::FillTree | ( | ) | [protected] |
static void* memstat::TMemStatMng::AllocHook | ( | size_t | size, | |
const void * | ||||
) | [static, protected] |
static void memstat::TMemStatMng::FreeHook | ( | void * | ptr, | |
const void * | ||||
) | [static, protected] |
static void memstat::TMemStatMng::MacAllocHook | ( | void * | ptr, | |
size_t | size | |||
) | [static, protected] |
static void memstat::TMemStatMng::MacFreeHook | ( | void * | ptr | ) | [static, protected] |
Int_t memstat::TMemStatMng::generateBTID | ( | UChar_t * | CRCdigest, | |
Int_t | stackEntries, | |||
void ** | stackPointers | |||
) | [protected] |
TFile* memstat::TMemStatMng::fDumpFile [protected] |
TTree* memstat::TMemStatMng::fDumpTree [protected] |
file to dump current information
Definition at line 113 of file TMemStatMng.h.
Referenced by Close(), FillTree(), and Init().
TMemStatMng* memstat::TMemStatMng::fgInstance [static, protected] |
tree to dump information
Definition at line 114 of file TMemStatMng.h.
Referenced by Close(), and GetInstance().
void* memstat::TMemStatMng::fgStackTop [static, protected] |
Definition at line 115 of file TMemStatMng.h.
Bool_t memstat::TMemStatMng::fUseGNUBuiltinBacktrace [protected] |
Definition at line 117 of file TMemStatMng.h.
Referenced by AddPointer(), and SetUseGNUBuiltinBacktrace().
TTimeStamp memstat::TMemStatMng::fTimeStamp [protected] |
Double_t memstat::TMemStatMng::fBeginTime [protected] |
ULong64_t memstat::TMemStatMng::fPos [protected] |
Int_t memstat::TMemStatMng::fTimems [protected] |
Int_t memstat::TMemStatMng::fNBytes [protected] |
Int_t memstat::TMemStatMng::fBtID [protected] |
Int_t memstat::TMemStatMng::fMaxCalls [protected] |
Int_t memstat::TMemStatMng::fBufferSize [protected] |
Int_t memstat::TMemStatMng::fBufN [protected] |
Definition at line 126 of file TMemStatMng.h.
Referenced by AddPointer(), FillTree(), and SetBufferSize().
ULong64_t* memstat::TMemStatMng::fBufPos [protected] |
Definition at line 127 of file TMemStatMng.h.
Referenced by AddPointer(), FillTree(), and SetBufferSize().
Int_t* memstat::TMemStatMng::fBufTimems [protected] |
Definition at line 128 of file TMemStatMng.h.
Referenced by AddPointer(), FillTree(), and SetBufferSize().
Int_t* memstat::TMemStatMng::fBufNBytes [protected] |
Definition at line 129 of file TMemStatMng.h.
Referenced by AddPointer(), FillTree(), and SetBufferSize().
Int_t* memstat::TMemStatMng::fBufBtID [protected] |
Definition at line 130 of file TMemStatMng.h.
Referenced by AddPointer(), FillTree(), and SetBufferSize().
Int_t* memstat::TMemStatMng::fIndex [protected] |
Bool_t* memstat::TMemStatMng::fMustWrite [protected] |
Definition at line 135 of file TMemStatMng.h.
TObjArray* memstat::TMemStatMng::fFAddrsList [private] |
TH1I* memstat::TMemStatMng::fHbtids [private] |
CRCSet_t memstat::TMemStatMng::fBTChecksums [private] |
Int_t memstat::TMemStatMng::fBTCount [private] |
UInt_t memstat::TMemStatMng::fBTIDCount [private] |
Definition at line 141 of file TMemStatMng.h.
Referenced by AddPointer(), Init(), and ~TMemStatMng().
TNamed* memstat::TMemStatMng::fSysInfo [private] |
TFile* memstat::TMemStatMng::fDumpFile [protected] |
Definition at line 112 of file TMemStatMng.h.
TTree* memstat::TMemStatMng::fDumpTree [protected] |
TMemStatMng* memstat::TMemStatMng::fgInstance [static, protected] |
void* memstat::TMemStatMng::fgStackTop [static, protected] |
Definition at line 115 of file TMemStatMng.h.
ULong64_t* memstat::TMemStatMng::fBufPos [protected] |
Definition at line 127 of file TMemStatMng.h.
Int_t* memstat::TMemStatMng::fBufTimems [protected] |
Definition at line 128 of file TMemStatMng.h.
Int_t* memstat::TMemStatMng::fBufNBytes [protected] |
Definition at line 129 of file TMemStatMng.h.
Int_t* memstat::TMemStatMng::fBufBtID [protected] |
Definition at line 130 of file TMemStatMng.h.
Int_t* memstat::TMemStatMng::fIndex [protected] |
Definition at line 131 of file TMemStatMng.h.
Bool_t* memstat::TMemStatMng::fMustWrite [protected] |
Definition at line 132 of file TMemStatMng.h.
TObjArray* memstat::TMemStatMng::fFAddrsList [private] |
Definition at line 136 of file TMemStatMng.h.
TH1I* memstat::TMemStatMng::fHbtids [private] |
Definition at line 137 of file TMemStatMng.h.
TNamed* memstat::TMemStatMng::fSysInfo [private] |
Definition at line 142 of file TMemStatMng.h.