90 #if defined(__GNUC__) && !defined(__clang__) 92 #pragma GCC diagnostic ignored "-Wframe-address" 122 transform(opt.begin(), opt.end(), opt.begin(),
125 useBuiltin = (opt.find(
"gnubuiltin") != string::npos) ?
kTRUE :
kFALSE;
128 TMemStatMng::GetInstance()->SetUseGNUBuiltinBacktrace(useBuiltin);
129 TMemStatMng::GetInstance()->SetBufferSize(buffersize);
130 TMemStatMng::GetInstance()->SetMaxCalls(maxcalls);
131 TMemStatMng::GetInstance()->Enable();
143 TMemStatMng::GetInstance()->Disable();
144 TMemStatMng::GetInstance()->Close();
153 TMemStatMng::Close();
161 TMemStatMng::GetInstance()->Disable();
169 TMemStatMng::GetInstance()->Enable();
177 TString action =
TString::Format(
"TMemStatShow::Show(%g,%d,\"%s\");",update,nbigleaks,fname);
178 gROOT->ProcessLine(action);
static void Close()
close the TMemStat manager
static void Show(Double_t update=0.1, Int_t nbigleaks=20, const char *fname="*")
Show results.
virtual void Enable()
Enable memory statistics.
#define _GET_CALLER_FRAME_ADDR
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
virtual ~TMemStat()
destructor
virtual void Disable()
Disable memory statistics.
TMemStat(Option_t *option="read", Int_t buffersize=10000, Int_t maxcalls=5000000)
Supported options: "gnubuiltin" - if declared, then MemStat will use gcc build-in function...
static void update(gsl_integration_workspace *workspace, double a1, double b1, double area1, double error1, double a2, double b2, double area2, double error2)