7 #pragma warning( disable : 654 ) 17 i_printinfo(
"Memory usage before", evt, caller );
22 i_printinfo(
"Memory usage has changed after", evt, caller );
30 info() << msg <<
" " << caller <<
" " << evt <<
" virtual size = " << pInfo.
vsize <<
" MB" 31 <<
" resident set size = " << pInfo.
rss <<
" MB" <<
endmsg;
MsgStream & msg() const
shortcut for the method msgStream(MSG::INFO)
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.
virtual void i_printinfo(const std::string &msg, CustomEventTypeRef evt, const std::string &caller)
Report the memory usage.
class MergingTransformer< Out(const vector_of_const_< In > void
#define DECLARE_COMPONENT(type)
This class is used for returning status codes from appropriate routines.
static bool getProcInfo(procInfo &info)
Get the process informations.
Monitors the memory use of each algorithm.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.