7 #pragma warning( disable : 654 ) 26 i_printinfo(
"Memory usage has changed after", evt, caller );
34 info() << msg <<
" " << caller <<
" " << evt <<
" virtual size = " << pInfo.
vsize <<
" MB" 35 <<
" resident set size = " << pInfo.
rss <<
" MB" <<
endmsg;
MsgStream & msg() const
shortcut for the method msgStream(MSG::INFO)
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
void i_after(CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc) override
Default (catch-all) "after" Auditor hook.
Base class with common functionalities shared by few auditor implementations.
virtual void i_printinfo(const std::string &msg, CustomEventTypeRef evt, const std::string &caller)
Report the memory usage.
#define DECLARE_COMPONENT(type)
This class is used for returning status codes from appropriate routines.
static bool getProcInfo(procInfo &info)
Get the process informations.
void i_before(CustomEventTypeRef evt, const std::string &caller) override
Default (catch-all) "before" Auditor hook.
Monitors the memory use of each algorithm.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.