4 #pragma warning(disable:654)
7 #include "GaudiKernel/MsgStream.h"
8 #include "GaudiKernel/IChronoStatSvc.h"
10 #include "GaudiKernel/Stat.h"
42 double deltaVSize = 0.00001;
56 log <<
MSG::INFO << msg <<
" " << caller <<
" " << evt <<
57 " \tvirtual size = " << info.
vsize <<
" MB" <<
58 " \tresident set size = " << info.
rss <<
" MB" <<
59 " deltaVsize = " << deltaVSize <<
" MB" <<
endmsg;
Definition of the MsgStream class used to transmit messages.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Just a minor modification of MemoryAuditor to allow the output memory statistics table to be printed...
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
Small wrapper class for easy manipulation with generic counters and IStatSvc&ICounterSvc interface...
StatusCode initialize() override
bool isFailure() const
Test for a status code of FAILURE.
TYPE * get() const
Get interface pointer.
StatusCode service(const Gaudi::Utils::TypeNameString &name, T *&svc, bool createIf=true)
Templated method to access a service by name.
This class is used for returning status codes from appropriate routines.
#define DECLARE_COMPONENT(type)
double m_vSize
vsize of the previous call to printinfo
SmartIF< ISvcLocator > & serviceLocator() const
The standard service locator.
SmartIF< IChronoStatSvc > m_stat
static bool getProcInfo(procInfo &info)
Get the process informations.
const std::string & name() const override
void i_before(CustomEventTypeRef evt, const std::string &caller) override
Re-implement i_before to avoid monitoring the memory usage before a function.
virtual StatusCode initialize()
Monitors the memory use of each algorithm.
SmartIF< IChronoStatSvc > & statSvc()
void i_printinfo(const std::string &msg, CustomEventTypeRef evt, const std::string &caller) override
Report the memory usage.