| The Gaudi Framework v29r0 (ff2e7097)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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 {
17 public:
18 MemStatAuditor( const std::string& name, ISvcLocator* pSvcLocator );
19 ~MemStatAuditor() override = default;
20
21 StatusCode initialize() override;
22
23 private:
25 void i_before( CustomEventTypeRef evt, const std::string& caller ) override;
26
27 void i_printinfo( const std::string& msg, CustomEventTypeRef evt, const std::string& caller ) override;
28
29 SmartIF<IChronoStatSvc>& statSvc() { return m_stat; }
30 SmartIF<IChronoStatSvc> m_stat;
31
33 double m_vSize = -1;
34 };
35
36 #endif // GAUDIAUDITOR_MemStatAuditor_H
SmartIF< IChronoStatSvc >
CommonMessagingBase::msg
MsgStream & msg() const
shortcut for the method msgStream(MSG::INFO)
Definition: CommonMessaging.h:126
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
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
Definition: MemStatAuditor.cpp:22
std::string
STL class.
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
MemStatAuditor::m_vSize
double m_vSize
vsize of the previous call to printinfo
Definition: MemStatAuditor.h:33
MemStatAuditor::m_stat
SmartIF< IChronoStatSvc > m_stat
Definition: MemStatAuditor.h:30
MemStatAuditor::~MemStatAuditor
~MemStatAuditor() override=default
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:35
MemoryAuditor
Monitors the memory use of each algorithm.
Definition: MemoryAuditor.h:11
MemStatAuditor::statSvc
SmartIF< IChronoStatSvc > & statSvc()
Definition: MemStatAuditor.h:29
MemStatAuditor::MemStatAuditor
MemStatAuditor(const std::string &name, ISvcLocator *pSvcLocator)
local
Definition: MemStatAuditor.cpp:18
Auditor::name
const std::string & name() const override
Definition: Auditor.cpp:202
IOTest.evt
evt
Definition: IOTest.py:96
MemStatAuditor::i_printinfo
void i_printinfo(const std::string &msg, CustomEventTypeRef evt, const std::string &caller) override
Report the memory usage.
Definition: MemStatAuditor.cpp:40