#include <ExecMon.h>
Public Member Functions | |
ExecMon (const std::string &msg="start", TimeKeeper::ptime starting_time=boost::posix_time::microsec_clock::local_time()) | |
~ExecMon () | |
std::string | operator() (std::string msg="<tick>", TimeKeeper::ptime now=boost::posix_time::microsec_clock::local_time(), MemUsage::memusage mu=MemUsage::memusage(-1,-1)) |
Record an event. More... | |
std::string | summary () const |
Return summary up to now. More... | |
Public Attributes | |
TimeKeeper | tk |
MemUsage | mu |
A helper class combining a TimeKeeper and a MemUsage
Use like
ExecMon em("starting"); ... em("starting long calculation...."); do_long_calculation(); em("...done"); ... info(em.summary());
ExecMon::ExecMon | ( | const std::string & | msg = "start" , |
TimeKeeper::ptime | starting_time = boost::posix_time::microsec_clock::local_time() |
||
) |
Definition at line 6 of file ExecMon.cxx.
ExecMon::~ExecMon | ( | ) |
Definition at line 10 of file ExecMon.cxx.
std::string ExecMon::operator() | ( | std::string | msg = "<tick>" , |
TimeKeeper::ptime | now = boost::posix_time::microsec_clock::local_time() , |
||
MemUsage::memusage | mu = MemUsage::memusage(-1,-1) |
||
) |
std::string ExecMon::summary | ( | ) | const |
Return summary up to now.
Definition at line 21 of file ExecMon.cxx.
TimeKeeper WireCell::ExecMon::tk |