The Gaudi Framework  v30r3 (a5ef0a68)
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 {
17 public:
18  using MemoryAuditor::MemoryAuditor;
19 
20  StatusCode initialize() override;
21 
22 private:
24  void i_before( CustomEventTypeRef evt, const std::string& caller ) override;
25 
26  void i_printinfo( const std::string& msg, CustomEventTypeRef evt, const std::string& caller ) override;
27 
30 
32  double m_vSize = -1;
33 };
34 
35 #endif // GAUDIAUDITOR_MemStatAuditor_H
MsgStream & msg() const
shortcut for the method msgStream(MSG::INFO)
Just a minor modification of MemoryAuditor to allow the output memory statistics table to be printed...
StatusCode initialize() override
local
STL class.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:51
double m_vSize
vsize of the previous call to printinfo
SmartIF< IChronoStatSvc > m_stat
void i_before(CustomEventTypeRef evt, const std::string &caller) override
Re-implement i_before to avoid monitoring the memory usage before a function.
Monitors the memory use of each algorithm.
Definition: MemoryAuditor.h:11
SmartIF< IChronoStatSvc > & statSvc()
evt
Definition: IOTest.py:96
void i_printinfo(const std::string &msg, CustomEventTypeRef evt, const std::string &caller) override
Report the memory usage.