1 #ifndef ATLASAUDITOR_MEMORYAUDITOR_H
2 #define ATLASAUDITOR_MEMORYAUDITOR_H
17 virtual void i_before(CustomEventTypeRef
evt,
const std::string& caller);
20 virtual void i_after(CustomEventTypeRef evt,
const std::string& caller,
const StatusCode&
sc);
23 virtual void i_printinfo(
const std::string&
msg, CustomEventTypeRef evt,
const std::string& caller);
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
virtual void i_before(CustomEventTypeRef evt, const std::string &caller)
Default (catch-all) "before" Auditor hook.
Base class with common functionalities shared by few auditor implementations.
static ProcStats * instance()
virtual void i_printinfo(const std::string &msg, CustomEventTypeRef evt, const std::string &caller)
Report the memory usage.
This class is used for returning status codes from appropriate routines.
static bool getProcInfo(procInfo &info)
Get the process informations.
const std::string & name() const override
MemoryAuditor(const std::string &name, ISvcLocator *pSvcLocator)
Monitors the memory use of each algorithm.
bool fetch(procInfo &fill_me)
virtual void i_after(CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc)
Default (catch-all) "after" Auditor hook.