| The Gaudi Framework v32r1 (f65d50dc)

MemoryAuditor.h
Go to the documentation of this file.
1 #ifndef ATLASAUDITOR_MEMORYAUDITOR_H
2 #define ATLASAUDITOR_MEMORYAUDITOR_H
3
4 #include "CommonAuditor.h"
5 #include "ProcStats.h"
6
11 class MemoryAuditor : public CommonAuditor {
12 public:
13 using CommonAuditor::CommonAuditor;
14
15 protected:
17 void i_before( CustomEventTypeRef evt, const std::string& caller ) override;
18
20 void i_after( CustomEventTypeRef evt, const std::string& caller, const StatusCode& sc ) override;
21
23 virtual void i_printinfo( const std::string& msg, CustomEventTypeRef evt, const std::string& caller );
24
27 inline static bool getProcInfo( procInfo& info ) { return ProcStats::instance()->fetch( info ); }
28 };
29
30 #endif
MemoryAuditor::i_after
void i_after(CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc) override
Default (catch-all) "after" Auditor hook.
Definition: MemoryAuditor.cpp:19
CommonAuditor
Base class with common functionalities shared by few auditor implementations.
Definition: CommonAuditor.h:8
ProcStats::instance
static ProcStats * instance()
Definition: ProcStats.cpp:239
MemoryAuditor::i_printinfo
virtual void i_printinfo(const std::string &msg, CustomEventTypeRef evt, const std::string &caller)
Report the memory usage.
Definition: MemoryAuditor.cpp:23
CommonMessagingBase::info
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Definition: CommonMessaging.h:104
std::string
STL class.
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
MemoryAuditor::getProcInfo
static bool getProcInfo(procInfo &info)
Get the process informations.
Definition: MemoryAuditor.h:27
CommonMessagingBase::msg
MsgStream & msg() const
shortcut for the method msgStream(MSG::INFO)
Definition: CommonMessaging.h:113
ProcStats.h
MemoryAuditor::i_before
void i_before(CustomEventTypeRef evt, const std::string &caller) override
Default (catch-all) "before" Auditor hook.
Definition: MemoryAuditor.cpp:15
MemoryAuditor
Monitors the memory use of each algorithm.
Definition: MemoryAuditor.h:11
ProcStats::fetch
bool fetch(procInfo &fill_me)
Definition: ProcStats.cpp:262
CommonAuditor.h
procInfo
Definition: ProcStats.h:17
IOTest.evt
evt
Definition: IOTest.py:94