#include <TMemStat.h>
Inheritance diagram for TMemStat:
Definition at line 14 of file TMemStat.h.
typedef std::set<std::string> TMemStat::Selection_t |
Definition at line 48 of file TMemStat.h.
enum TMemStat::ESelection |
Definition at line 50 of file TMemStat.h.
enum TMemStat::StatType |
Definition at line 51 of file TMemStat.h.
enum TMemStat::StampType |
Definition at line 52 of file TMemStat.h.
enum TMemStat::OperType |
Definition at line 53 of file TMemStat.h.
TMemStat::TMemStat | ( | Option_t * | option = "read" , |
|
Int_t | buffersize = 10000 , |
|||
Int_t | maxcalls = 5000000 | |||
) |
Definition at line 98 of file TMemStat.cxx.
References _GET_CALLER_FRAME_ADDR, gDirectory, kTRUE, and transform.
TMemStat::~TMemStat | ( | ) | [virtual] |
TMemStat::TMemStat | ( | Option_t * | option = "read" , |
|
Int_t | buffersize = 10000 , |
|||
Int_t | maxcalls = 5000000 | |||
) |
virtual TMemStat::~TMemStat | ( | ) | [virtual] |
TMemStat::TMemStat | ( | Option_t * | option = "read" |
) |
Definition at line 155 of file TMemStat.cxx.
References _GET_TO_STECK, TObjArray::AddLast(), TMemStatManager::Enable(), TObject::Error(), fDisablePrintCode, fDisablePrintLib, fIsActive, gDirectory, TMemStatManager::GetInstance(), GetMemStat(), kFALSE, kTRUE, ProcessOption(), SetAutoStamp(), TCollection::SetOwner(), TMemStatManager::SetUseGNUBuildinBacktrace(), and transform.
virtual TMemStat::~TMemStat | ( | ) | [virtual] |
void TMemStat::Close | ( | ) | [static] |
Definition at line 142 of file TMemStat.cxx.
Referenced by G__G__MemStat_120_0_2(), and G__setup_memfuncTMemStat().
void TMemStat::Disable | ( | ) | [virtual] |
Definition at line 149 of file TMemStat.cxx.
void TMemStat::Enable | ( | ) | [virtual] |
Definition at line 156 of file TMemStat.cxx.
void TMemStat::Show | ( | Double_t | update = 0.1 , |
|
Int_t | nbigleaks = 20 , |
|||
const char * | fname = "*" | |||
) | [static] |
Definition at line 163 of file TMemStat.cxx.
References TString::Format(), gROOT, and TROOT::ProcessLine().
Referenced by G__G__MemStat_120_0_5(), and G__setup_memfuncTMemStat().
static void TMemStat::Close | ( | ) | [static] |
virtual void TMemStat::Disable | ( | ) | [virtual] |
virtual void TMemStat::Enable | ( | ) | [virtual] |
static void TMemStat::Show | ( | Double_t | update = 0.1 , |
|
Int_t | nbigleaks = 20 , |
|||
const char * | fname = "*" | |||
) | [static] |
Reimplemented from TObject.
Definition at line 247 of file TMemStat.cxx.
References TObjArray::At(), ROOT::Math::gv_detail::dist(), fArray, TCollection::GetSize(), and i.
Definition at line 420 of file TMemStat.cxx.
References fFile, fManager, fTree, fTreeSys, TTree::GetEntries(), TTree::GetEntry(), kFALSE, kTRUE, NULL, TFile::Open(), TTree::ResetBranchAddresses(), and TTree::SetBranchAddress().
Referenced by SetCurrentStamp(), and TMemStat().
Bool_t TMemStat::EnabledCode | ( | const TMemStatCodeInfo & | info | ) | const [private] |
Definition at line 350 of file TMemStat.cxx.
References TObjArray::At(), fDisablePrintCode, fDisablePrintLib, TObjArray::GetEntries(), i, info, kFALSE, kTRUE, and str.
Referenced by GetObjectInfo(), MakeGraphStack(), and PrintStackWithID().
void TMemStat::MakeCodeArray | ( | ) | [private] |
Definition at line 511 of file TMemStat.cxx.
References TMemStatManager::fCodeInfoArray, fManager, fSelectedCodeBitmap, fSelectedCodeIndex, i, size_t, and TBits::TestBitNumber().
Referenced by SelectCode().
TGraph * TMemStat::MakeGraph | ( | StatType | statType, | |
Int_t | id, | |||
Int_t | type, | |||
Double_t & | xmax, | |||
Double_t & | ymax | |||
) | [private] |
Definition at line 648 of file TMemStat.cxx.
References TTree::Draw(), entries, fManager, TMemStatManager::fStampNumber, fTree, TTree::GetV1(), TTree::GetV2(), graph(), i, kAllocCount, kAllocSize, kTotalAllocCount, kTotalAllocSize, kUndef, x, and y.
Referenced by MakeGraphCode(), and MakeGraphStack().
Definition at line 562 of file TMemStat.cxx.
References TObjArray::AddLast(), TObjArray::Delete(), fArray, fArrayIndexes, TMemStatManager::fCodeInfoArray, TMemStatCodeInfo::fFunction, fManager, fMaxStringLength, fSelectedCodeIndex, TObjArray::GetEntries(), gr, i, TMemStatInfoStamp::kCode, TString::Length(), MakeGraph(), TMath::Max(), TAttLine::SetLineColor(), TNamed::SetName(), and str.
Referenced by Draw().
Definition at line 599 of file TMemStat.cxx.
References TObjArray::AddLast(), TObjArray::Delete(), EnabledCode(), fArray, fArrayIndexes, TMemStatManager::fCodeInfoArray, fManager, fMaximum, fMaxStringLength, fSelectedStackIndex, TMemStatStackInfo::fSize, TMemStatManager::fStackVector, TMemStatStackInfo::fSymbolIndexes, TObjArray::GetEntries(), gr, i, if(), TMemStatInfoStamp::kStack, MakeGraph(), TMath::Max(), TAttLine::SetLineColor(), TAttMarker::SetMarkerColor(), TAttMarker::SetMarkerSize(), TAttMarker::SetMarkerStyle(), TNamed::SetName(), TObject::SetUniqueID(), and str.
Referenced by Draw().
void TMemStat::MakeStampsText | ( | ) | [private] |
void TMemStat::MakeStackArray | ( | ) | [private] |
Definition at line 534 of file TMemStat.cxx.
References TMemStatInfoStamp::fAllocCount, TMemStatInfoStamp::fAllocSize, fManager, fSelectedStackBitmap, fSelectedStackIndex, fStackSummary, TMemStatManager::fStackVector, TMemStatInfoStamp::fTotalAllocCount, TMemStatInfoStamp::fTotalAllocSize, i, info, size_t, and TBits::TestBitNumber().
Referenced by SelectStack().
void TMemStat::ProcessOption | ( | Option_t * | option | ) | [private] |
Definition at line 912 of file TMemStat.cxx.
References TObjArray::At(), TString::Atoi(), TString::Data(), TObject::Error(), fMaxStringLength, fOption, fOrder, Form(), fSortDeep, fSortStamp, fSortStat, fStackDeep, TObjArray::GetEntriesFast(), i, TString::IsDigit(), sprintf(), str, TObjString::String(), and val.
Referenced by Draw(), MakeReport(), Report(), and TMemStat().
void TMemStat::RefreshSelect | ( | ) | [private] |
Definition at line 979 of file TMemStat.cxx.
References fSelectedCodeIndex, fSelectedStackIndex, kOR, NULL, SelectCode(), and SelectStack().
void TMemStat::AddStamp | ( | const char * | stampName | ) |
Definition at line 239 of file TMemStat.cxx.
References TMemStatManager::AddStamps(), and TMemStatManager::GetInstance().
void TMemStat::Draw | ( | Option_t * | option = "" |
) | [virtual] |
Reimplemented from TObject.
Definition at line 265 of file TMemStat.cxx.
References TLegend::AddEntry(), TObjArray::AddLast(), TObject::AppendPad(), TObjArray::At(), c, TString::Contains(), TLegend::Draw(), fArray, fArrayGraphics, fMaximum, fSortDeep, fSortStamp, fSortStat, gDone, TObjArray::GetEntries(), gPad, gROOT, i, TROOT::IsBatch(), kFALSE, kTRUE, legend, MakeGraphCode(), MakeGraphStack(), MakeStampsText(), ProcessOption(), RefreshSelect(), SortCode(), SortStack(), and TString::ToLower().
Referenced by TMemStatDrawDlg::ReDraw().
void TMemStat::GetFillSelection | ( | Selection_t * | _Container, | |
ESelection | _Selection | |||
) | const |
Definition at line 406 of file TMemStat.cxx.
References TMemStatManager::fCodeInfoArray, fManager, and transform.
Referenced by TMemStatViewerGUI::MakeSelection().
const Option_t* TMemStat::GetOption | ( | ) | const [inline, virtual] |
Reimplemented from TObject.
Definition at line 104 of file TMemStat.h.
References TString::Data(), and fOption.
TObjArray * TMemStat::GetStampList | ( | ) |
Definition at line 490 of file TMemStat.cxx.
References TObjArray::AddLast(), fStampArray, fTreeSys, TTree::GetEntries(), TTree::GetEntry(), i, NULL, TTree::SetBranchAddress(), and str.
Referenced by TMemStatViewerGUI::MakeStampList(), and SetCurrentStamp().
UInt_t TMemStat::GetStackDeep | ( | ) | const [inline] |
Definition at line 108 of file TMemStat.h.
References fStackDeep.
Referenced by TMemStatViewerGUI::MakeContDeep(), and TMemStatDrawDlg::PlaceDeepCtrl().
UInt_t TMemStat::GetSortDeep | ( | ) | const [inline] |
Definition at line 112 of file TMemStat.h.
References fSortDeep.
Referenced by TMemStatViewerGUI::MakeContDeep(), and TMemStatDrawDlg::PlaceDeepCtrl().
UInt_t TMemStat::GetMaxStringLength | ( | ) | const [inline] |
Definition at line 116 of file TMemStat.h.
References fMaxStringLength.
Referenced by TMemStatDrawDlg::PlaceDeepCtrl().
Reimplemented from TObject.
Definition at line 456 of file TMemStat.cxx.
References TObjArray::At(), ROOT::Math::gv_detail::dist(), EnabledCode(), fArray, TMemStatManager::fCodeInfoArray, fManager, TMemStatStackInfo::fSize, TMemStatManager::fStackVector, TMemStatStackInfo::fSymbolIndexes, TCollection::GetSize(), TObject::GetUniqueID(), ginfo, gPad, i, if(), sprintf(), and strcat().
void TMemStat::MakeReport | ( | const char * | lib = "" , |
|
const char * | fun = "" , |
|||
Option_t * | option = NULL , |
|||
const char * | fileName = "" | |||
) |
Definition at line 767 of file TMemStat.cxx.
References fSortStamp, fSortStat, gSystem, kAND, kOR, NULL, ProcessOption(), TSystem::RedirectOutput(), Report(), SelectCode(), SelectStack(), SortCode(), and SortStack().
Referenced by TMemStatViewerGUI::MakePrint().
void TMemStat::MakeHisMemoryStamp | ( | Int_t | topDiff | ) |
Definition at line 714 of file TMemStat.cxx.
References TTree::Draw(), entries, fTreeSys, TTree::GetV1(), i, kFALSE, and TMath::Sort().
void TMemStat::MakeHisMemoryTime | ( | ) |
Definition at line 729 of file TMemStat.cxx.
References TObject::Clone(), TH1::Draw(), TTree::Draw(), TROOT::FindObject(), fTreeSys, TH1::GetXaxis(), gROOT, TH1::SetDirectory(), TAttMarker::SetMarkerColor(), and TAxis::SetTimeDisplay().
void TMemStat::Paint | ( | Option_t * | option = "" |
) | [virtual] |
void TMemStat::PrintCode | ( | Int_t | nentries = 10 |
) | const |
Definition at line 834 of file TMemStat.cxx.
References TMemStatManager::fCodeInfoArray, fManager, fSelectedCodeIndex, and max.
Referenced by Report().
void TMemStat::PrintCodeWithID | ( | UInt_t | index | ) | const |
Definition at line 850 of file TMemStat.cxx.
References TMemStatManager::fCodeInfoArray, and fManager.
Definition at line 862 of file TMemStat.cxx.
References fSelectedStackIndex, fStackSummary, max, TMemStatInfoStamp::Print(), and PrintStackWithID().
Referenced by Report().
Definition at line 884 of file TMemStat.cxx.
References EnabledCode(), TMemStatManager::fCodeInfoArray, fManager, TMemStatStackInfo::fSize, fStackDeep, TMemStatManager::fStackVector, TMemStatStackInfo::fSymbolIndexes, and if().
Referenced by PrintStack().
void TMemStat::Report | ( | Option_t * | option = "" |
) |
Definition at line 990 of file TMemStat.cxx.
References TString::Contains(), fSortDeep, fSortStamp, fSortStat, fStackDeep, PrintCode(), PrintStack(), ProcessOption(), RefreshSelect(), SortCode(), SortStack(), and TString::ToLower().
Referenced by TMemStatViewerGUI::Initialize(), MakeReport(), and MemStat().
void TMemStat::ResetSelection | ( | ) |
Definition at line 1021 of file TMemStat.cxx.
References fSelectedCodeBitmap, fSelectedCodeIndex, fSelectedStackBitmap, fSelectedStackIndex, fStackSummary, and NULL.
Definition at line 1037 of file TMemStat.cxx.
References TMemStatManager::GetInstance(), and TMemStatManager::SetAutoStamp().
Referenced by TMemStat().
void TMemStat::SetCurrentStamp | ( | const char * | stampName | ) |
Definition at line 1048 of file TMemStat.cxx.
References entry, Memstat::find_string(), fStampArray, GetMemStat(), and GetStampList().
Referenced by TMemStatViewerGUI::HandleStampSelect(), TMemStatViewerGUI::MakeStampList(), and SetCurrentStamp().
void TMemStat::SetCurrentStamp | ( | const TObjString & | stampName | ) |
Definition at line 1059 of file TMemStat.cxx.
References TObjString::GetString(), and SetCurrentStamp().
void TMemStat::SetSortStat | ( | StatType | NewVal | ) | [inline] |
Definition at line 135 of file TMemStat.h.
References fSortStat.
Referenced by TMemStatViewerGUI::HandleButtonsSortStat(), and TMemStatViewerGUI::TMemStatViewerGUI().
void TMemStat::SetSortStamp | ( | StampType | NewVal | ) | [inline] |
Definition at line 139 of file TMemStat.h.
References fSortStamp.
Referenced by TMemStatViewerGUI::HandleButtonsSortStamp(), and TMemStatViewerGUI::TMemStatViewerGUI().
void TMemStat::SetStackDeep | ( | UInt_t | NewVal | ) | [inline] |
Definition at line 143 of file TMemStat.h.
References fStackDeep.
Referenced by TMemStatViewerGUI::HandleDeep().
void TMemStat::SetSortDeep | ( | UInt_t | NewVal | ) | [inline] |
Definition at line 147 of file TMemStat.h.
References fSortDeep.
Referenced by TMemStatViewerGUI::HandleDeep().
void TMemStat::SelectCode | ( | const char * | contlib = "" , |
|
const char * | contfunction = "" , |
|||
OperType | oType = kOR | |||
) |
Definition at line 1066 of file TMemStat.cxx.
References entries, TObject::Error(), TMemStatManager::fCodeInfoArray, fManager, fSelectedCodeBitmap, fSelectedCodeIndex, i, info, kAND, kFALSE, kNOT, kOR, kTRUE, MakeCodeArray(), TBits::SetBitNumber(), size_t, and TBits::TestBitNumber().
Referenced by MakeReport(), and RefreshSelect().
void TMemStat::SelectStack | ( | OperType | oType = kOR |
) |
Definition at line 1127 of file TMemStat.cxx.
References entries, fManager, fSelectedCodeBitmap, fSelectedStackBitmap, fSelectedStackIndex, TMemStatManager::fStackVector, i, info, kAND, kFALSE, kNOT, kOR, kTRUE, MakeStackArray(), TBits::SetBitNumber(), size_t, and TBits::TestBitNumber().
Referenced by MakeReport(), and RefreshSelect().
Definition at line 1179 of file TMemStat.cxx.
References entries, TMemStatManager::fCodeInfoArray, fManager, fOrder, fSelectedCodeBitmap, fSelectedCodeIndex, i, info, kAllocCount, kAllocSize, kCurrent, kMaxCount, kMaxSize, kTotalAllocCount, kTotalAllocSize, kUndef, size, size_t, TMath::Sort(), and TBits::TestBitNumber().
Referenced by Draw(), MakeReport(), and Report().
Definition at line 1245 of file TMemStat.cxx.
References entries, fManager, fOrder, fSelectedCodeBitmap, fSelectedStackBitmap, fSelectedStackIndex, fSortDeep, TMemStatManager::fStackVector, i, info, kAllocCount, kAllocSize, kCurrent, kMaxCount, kMaxSize, kTotalAllocCount, kTotalAllocSize, kUndef, Long64_t, TMath::Min(), NULL, size_t, TMath::Sort(), TBits::TestBitNumber(), and value.
Referenced by Draw(), MakeReport(), and Report().
Bool_t TMemStat::fIsActive [private] |
StatType TMemStat::fSortStat [private] |
Definition at line 56 of file TMemStat.h.
Referenced by Draw(), MakeReport(), ProcessOption(), Report(), and SetSortStat().
StampType TMemStat::fSortStamp [private] |
Definition at line 57 of file TMemStat.h.
Referenced by Draw(), MakeReport(), ProcessOption(), Report(), and SetSortStamp().
Double_t TMemStat::fMaximum [private] |
UInt_t TMemStat::fSortDeep [private] |
Definition at line 59 of file TMemStat.h.
Referenced by Draw(), GetSortDeep(), ProcessOption(), Report(), SetSortDeep(), and SortStack().
UInt_t TMemStat::fStackDeep [private] |
Definition at line 60 of file TMemStat.h.
Referenced by GetStackDeep(), PrintStackWithID(), ProcessOption(), Report(), and SetStackDeep().
UInt_t TMemStat::fMaxStringLength [private] |
Definition at line 61 of file TMemStat.h.
Referenced by GetMaxStringLength(), MakeGraphCode(), MakeGraphStack(), and ProcessOption().
Int_t TMemStat::fSelected [private] |
Definition at line 62 of file TMemStat.h.
Bool_t TMemStat::fOrder [private] |
Definition at line 64 of file TMemStat.h.
Referenced by ProcessOption(), SortCode(), and SortStack().
UIntVector_t TMemStat::fSelectedCodeIndex [private] |
Definition at line 65 of file TMemStat.h.
Referenced by MakeCodeArray(), MakeGraphCode(), PrintCode(), RefreshSelect(), ResetSelection(), SelectCode(), and SortCode().
UIntVector_t TMemStat::fSelectedStackIndex [private] |
Definition at line 66 of file TMemStat.h.
Referenced by MakeGraphStack(), MakeStackArray(), PrintStack(), RefreshSelect(), ResetSelection(), SelectStack(), and SortStack().
IntVector_t TMemStat::fArrayIndexes [private] |
TBits* TMemStat::fSelectedCodeBitmap [private] |
Definition at line 68 of file TMemStat.h.
Referenced by MakeCodeArray(), ResetSelection(), SelectCode(), SelectStack(), SortCode(), and SortStack().
TBits* TMemStat::fSelectedStackBitmap [private] |
Definition at line 69 of file TMemStat.h.
Referenced by MakeStackArray(), ResetSelection(), SelectStack(), and SortStack().
TFilePtr TMemStat::fFile [private] |
TObjArray* TMemStat::fStampArray [private] |
TObjArray* TMemStat::fArray [private] |
Definition at line 72 of file TMemStat.h.
Referenced by DistancetoPrimitive(), Draw(), GetObjectInfo(), MakeGraphCode(), and MakeGraphStack().
TObjArray* TMemStat::fArrayGraphics [private] |
TObjArray TMemStat::fDisablePrintLib [private] |
TObjArray TMemStat::fDisablePrintCode [private] |
TString TMemStat::fOption [private] |
TTree* TMemStat::fTree [private] |
TTree* TMemStat::fTreeSys [private] |
Definition at line 78 of file TMemStat.h.
Referenced by GetMemStat(), GetStampList(), MakeHisMemoryStamp(), and MakeHisMemoryTime().
TMemStatInfoStamp* TMemStat::fStackSummary [private] |
Definition at line 79 of file TMemStat.h.
Referenced by MakeStackArray(), PrintStack(), and ResetSelection().
TMemStatManager* TMemStat::fManager [private] |
Definition at line 80 of file TMemStat.h.
Referenced by GetFillSelection(), GetMemStat(), GetObjectInfo(), MakeCodeArray(), MakeGraph(), MakeGraphCode(), MakeGraphStack(), MakeStackArray(), PrintCode(), PrintCodeWithID(), PrintStackWithID(), SelectCode(), SelectStack(), SortCode(), and SortStack().