00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __XANAMEMLOG_H
00011 #define __XANAMEMLOG_H
00012
00013 #ifndef ROOT_TObject
00014 #include <TObject.h>
00015 #endif
00016
00017 #ifndef ROOT_TArrayI
00018 #include <TArrayI.h>
00019 #endif
00020
00021 #ifndef ROOT_TString
00022 #include <TString.h>
00023 #endif
00024
00025
00026 class XANAMemLog: public TObject {
00027 public:
00028 XANAMemLog();
00029
00030 Int_t getMemUsage() const;
00031 Int_t getArena() const;
00032 void fill();
00033 void writeHistogram(const char* fileName = "memlog.root");
00034 void print(Option_t* opt = "") const;
00035
00036 private:
00037 TArrayI fMemUsage;
00038 Int_t fCurrent;
00039 };
00040
00041
00042 #endif