| # Gaudi Framework, version v21r7p1 |

Home |  | Generated: 15 Feb 2010

# MemStatAuditor.h

Go to the documentation of this file.

    00001 #ifndef     GAUDIAUDITOR_MemStatAuditor_H
    00002 #define     GAUDIAUDITOR_MemStatAuditor_H 1
    00003
    00013 #include "GaudiKernel/Auditor.h"
    00014
    00015 class IChronoStatSvc;
    00016
    00017 class MemStatAuditor:public  Auditor {
    00018
    00019 public:
    00020   MemStatAuditor(const std::string& name, ISvcLocator* pSvcLocator);
    00021   virtual ~MemStatAuditor();
    00022   virtual void beforeInitialize(INamedInterface* alg);
    00023   virtual void afterInitialize(INamedInterface* alg);
    00024   virtual void beforeReinitialize(INamedInterface* alg);
    00025   virtual void afterReinitialize(INamedInterface* alg);
    00026   virtual void beforeExecute(INamedInterface* alg);
    00027   virtual void afterExecute(INamedInterface* alg, const StatusCode &);
    00028   virtual void beforeBeginRun(INamedInterface* alg);
    00029   virtual void afterBeginRun(INamedInterface *alg);
    00030   virtual void beforeEndRun(INamedInterface* alg);
    00031   virtual void afterEndRun(INamedInterface *alg);
    00032   virtual void beforeFinalize(INamedInterface* alg);
    00033   virtual void afterFinalize(INamedInterface* alg);
    00034
    00035   virtual void before(CustomEventTypeRef evt, const std::string& caller);
    00036   virtual void after(CustomEventTypeRef evt, const std::string& caller, const StatusCode& );
    00037
    00038   virtual StatusCode sysFinalize( );
    00039
    00040 private:
    00041
    00042   StringArrayProperty m_types;
    00043   bool printinfo(const std::string& theString, const std::string& Tag );
    00044   SmartIF<IChronoStatSvc>&  statSvc() const { return m_stat; }
    00045   mutable SmartIF<IChronoStatSvc>  m_stat;
    00046   double m_vSize ; // vsize of the previous call to printinfo
    00047 };
    00048
    00049 #endif  //  GAUDIAUDITOR_MemStatAuditor_H
    00050