| The Gaudi Framework v27r1

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

- File List
- File Members

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 MemoryAuditor(const std::string& name, ISvcLocator* pSvcLocator);
14
15 protected:
17 virtual void i_before(CustomEventTypeRef evt, const std::string& caller);
18
20 virtual void i_after(CustomEventTypeRef evt, const std::string& caller, const StatusCode& sc);
21
23 virtual void i_printinfo(const std::string& msg, CustomEventTypeRef evt, const std::string& caller);
24
27 inline static bool getProcInfo(procInfo &info) {
28 return ProcStats::instance()->fetch(info);
29 }
30 };
31
32 #endif
CommonMessagingBase::msg
MsgStream & msg() const
shortcut for the method msgStream(MSG::INFO)
Definition: CommonMessaging.h:133
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
MemoryAuditor::i_before
virtual void i_before(CustomEventTypeRef evt, const std::string &caller)
Default (catch-all) "before" Auditor hook.
Definition: MemoryAuditor.cpp:19
CommonMessagingBase::info
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Definition: CommonMessaging.h:124
CommonAuditor
Base class with common functionalities shared by few auditor implementations.
Definition: CommonAuditor.h:5
ProcStats::instance
static ProcStats * instance()
Definition: ProcStats.cpp:237
MemoryAuditor::i_printinfo
virtual void i_printinfo(const std::string &msg, CustomEventTypeRef evt, const std::string &caller)
Report the memory usage.
Definition: MemoryAuditor.cpp:27
merge_files.sc
int sc
Definition: merge_files.py:167
std::string
STL class.
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
read_lhcb_event_file.evt
tuple evt
Definition: read_lhcb_event_file.py:14
MemoryAuditor::getProcInfo
static bool getProcInfo(procInfo &info)
Get the process informations.
Definition: MemoryAuditor.h:27
ProcStats.h
Auditor::name
const std::string & name() const override
Definition: Auditor.cpp:202
MemoryAuditor::MemoryAuditor
MemoryAuditor(const std::string &name, ISvcLocator *pSvcLocator)
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:263
CommonAuditor.h
procInfo
Definition: ProcStats.h:16
MemoryAuditor::i_after
virtual void i_after(CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc)
Default (catch-all) "after" Auditor hook.
Definition: MemoryAuditor.cpp:23