All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MemStatAuditor.h
Go to the documentation of this file.
1 #ifndef GAUDIAUDITOR_MemStatAuditor_H
2 #define GAUDIAUDITOR_MemStatAuditor_H 1
3 
13 #include "MemoryAuditor.h"
14 
16 public:
17  MemStatAuditor(const std::string& name, ISvcLocator* pSvcLocator);
18  virtual ~MemStatAuditor();
19 
20  virtual StatusCode initialize();
21 private:
23  virtual void i_before(CustomEventTypeRef evt, const std::string& caller);
24 
25  virtual void i_printinfo(const std::string& msg, CustomEventTypeRef evt, const std::string& caller);
26 
29 
31  double m_vSize ;
32 };
33 
34 #endif // GAUDIAUDITOR_MemStatAuditor_H
35 
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:26
Just a minor modification of MemoryAuditor to allow the output memory statistics table to be printed...
virtual const std::string & name() const
Retrieve the name of the instance.
Definition: Auditor.cpp:218
const CustomEventType & CustomEventTypeRef
Used in function calls for optimization purposes.
Definition: IAuditor.h:41
virtual StatusCode initialize()
virtual void i_before(CustomEventTypeRef evt, const std::string &caller)
Re-implement i_before to avoid monitoring the memory usage before a function.
virtual ~MemStatAuditor()
virtual void i_printinfo(const std::string &msg, CustomEventTypeRef evt, const std::string &caller)
Report the memory usage.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
double m_vSize
vsize of the previous call to printinfo
SmartIF< IChronoStatSvc > m_stat
Monitors the memory use of each algorithm.
Definition: MemoryAuditor.h:11
SmartIF< IChronoStatSvc > & statSvc()
MemStatAuditor(const std::string &name, ISvcLocator *pSvcLocator)
local