Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
24 using Auditor::Auditor;
34 virtual void i_printinfo( std::string_view
msg, std::string
const&
evt, std::string_view caller );
40 i_printinfo(
"Memory usage before",
evt, caller );
51 if ( pInfo.vsize > 0 ) {
52 info() <<
msg <<
" " << caller <<
" " <<
evt <<
" virtual size = " << pInfo.vsize <<
" MB"
53 <<
" resident set size = " << pInfo.rss <<
" MB" <<
endmsg;
static ProcStats * instance()
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
#define DECLARE_COMPONENT(type)
bool fetch(procInfo &fill_me)
void before(std::string const &evt, std::string const &, EventContext const &) override
Default (catch-all) "before" Auditor hook.
Base class from which all concrete auditor classes should be derived.
Monitors the memory use of each algorithm.
void after(std::string const &evt, std::string const &caller, EventContext const &, const StatusCode &sc) override
Default (catch-all) "after" Auditor hook.
virtual void i_printinfo(std::string_view msg, std::string const &evt, std::string_view caller)
Report the memory usage.