7 # pragma warning( disable : 654 ) 16 i_printinfo(
"Memory usage before",
evt, caller );
27 info() <<
msg <<
" " << caller <<
" " <<
evt <<
" virtual size = " << pInfo.
vsize <<
" MB" 28 <<
" resident set size = " << pInfo.
rss <<
" MB" <<
endmsg;
void i_after(CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc) override
Default (catch-all) "after" Auditor hook.
virtual void i_printinfo(const std::string &msg, CustomEventTypeRef evt, const std::string &caller)
Report the memory usage.
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
#define DECLARE_COMPONENT(type)
This class is used for returning status codes from appropriate routines.
static bool getProcInfo(procInfo &info)
Get the process informations.
MsgStream & msg() const
shortcut for the method msgStream(MSG::INFO)
Monitors the memory use of each algorithm.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.