| The Gaudi Framework v32r1 (f65d50dc)

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