Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

XANAMemLog.h

Go to the documentation of this file.
00001 /*
00002 
00003    Author     : Thomas Kuhr
00004    Date       : 26.09.2001
00005    Adapted by U.Berthon, 01/09/04
00006    Description: class for logging memory usage
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

Generated on Tue May 10 10:01:24 2005 for XANADOO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002