00001
00010
00011
00012
00013
00014
00015
00016 #ifndef StMemStat_h
00017 #define StMemStat_h
00018 #include "TNamed.h"
00019
00020 class TList;
00021
00022 class StMemStat :public TNamed {
00023 public:
00024 StMemStat(const char *name=0);
00025 ~StMemStat();
00026 void Start();
00027 void Stop();
00028 virtual void Print(const char *tit="") const;
00029
00030
00031
00032 static Double_t Used();
00033 static Double_t Free();
00034 static Double_t ProgSize();
00035 static void PrintMem(const char *tit);
00036 static void PM();
00037 static void Summary();
00039 private:
00040 Double_t fLast;
00041 Double_t fMin;
00042 Double_t fAver;
00043 Double_t fMax;
00044 Double_t fRms;
00045 Int_t fTally;
00046
00047 static Double_t fgUsed;
00048 static TList *fgList;
00049
00050 ClassDef(StMemStat,0)
00051 };
00052
00053 #endif