| # Gaudi Framework, version v21r6 |

Home |  | Generated: 11 Nov 2009

# MemoryAuditor.h

Go to the documentation of this file.

    00001 #ifndef ATLASAUDITOR_MEMORYAUDITOR_H
    00002 #define ATLASAUDITOR_MEMORYAUDITOR_H
    00003
    00004 // ClassName: MemoryAuditor
    00005 //
    00006 // Description:  Monitors the memory use of each algorithm
    00007 //
    00008 // Author: M. Shapiro, LBNL
    00009 //
    00010 #include "GaudiKernel/Auditor.h"
    00011
    00012 class MemoryAuditor:public  Auditor {
    00013
    00014 public:
    00015   MemoryAuditor(const std::string& name, ISvcLocator* pSvcLocator);
    00016   virtual ~MemoryAuditor();
    00017   virtual void beforeInitialize(INamedInterface* alg);
    00018   virtual void afterInitialize(INamedInterface* alg);
    00019   virtual void beforeReinitialize(INamedInterface* alg);
    00020   virtual void afterReinitialize(INamedInterface* alg);
    00021   virtual void beforeExecute(INamedInterface* alg);
    00022   virtual void afterExecute(INamedInterface* alg, const StatusCode& );
    00023   virtual void beforeBeginRun(INamedInterface* alg);
    00024   virtual void afterBeginRun(INamedInterface *alg);
    00025   virtual void beforeEndRun(INamedInterface* alg);
    00026   virtual void afterEndRun(INamedInterface *alg);
    00027   virtual void beforeFinalize(INamedInterface* alg);
    00028   virtual void afterFinalize(INamedInterface* alg);
    00029
    00030   virtual void before(CustomEventTypeRef evt, const std::string& caller);
    00031   virtual void after(CustomEventTypeRef evt, const std::string& caller, const StatusCode& );
    00032
    00033
    00034   virtual StatusCode sysFinalize( );
    00035
    00036 private:
    00037   StringArrayProperty m_types;
    00038   bool printinfo(std::string theString);
    00039 };
    00040
    00041 #endif