00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef ROOT_TMemStatShow
00013 #define ROOT_TMemStatShow
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef ROOT_TObject
00026 #include "TObject.h"
00027 #endif
00028
00029 class TTree;
00030 class TH1D;
00031 class TH1I;
00032 class TGToolTip;
00033 class TObjArray;
00034 class TCanvas;
00035
00036 class TMemStatShow : public TObject {
00037
00038 protected:
00039 static TTree *fgT;
00040 static TH1D *fgHalloc;
00041 static TH1D *fgHfree;
00042 static TH1D *fgH;
00043 static TH1I *fgHleaks;
00044 static TH1I *fgHentry;
00045 static TH1I *fgHdiff;
00046
00047 static TGToolTip *fgTip1;
00048 static TGToolTip *fgTip2;
00049 static TObjArray *fgBtidlist;
00050 static Double_t *fgV1;
00051 static Double_t *fgV2;
00052 static Double_t *fgV3;
00053 static Double_t *fgV4;
00054 static TCanvas *fgC1;
00055 static TCanvas *fgC2;
00056 static TCanvas *fgC3;
00057
00058 static Long64_t fgAddressFirst;
00059 static Long64_t fgAddressN;
00060 static Long64_t fgEntryFirst;
00061 static Long64_t fgEntryN;
00062
00063 public:
00064 TMemStatShow() {;}
00065 virtual ~TMemStatShow() {;}
00066 static void EventInfo1(Int_t event, Int_t px, Int_t py, TObject *selected);
00067 static void EventInfo2(Int_t event, Int_t px, Int_t py, TObject *selected);
00068 static void FillBTString(Int_t bin, Int_t mode, TString &btstring);
00069
00070 static void SetAddressRange(Long64_t nbytes=0, Long64_t first=0);
00071 static void SetEntryRange(Long64_t nentries=0, Long64_t first=0);
00072 static void Show(Double_t update=0.1, Int_t nbigleaks=20, const char* fname="*");
00073
00074 ClassDef(TMemStatShow,0)
00075 };
00076
00077 #endif