4 #pragma warning(disable:654)
44 double deltaVSize = 0.00001;
58 log <<
MSG::INFO << msg <<
" " << caller <<
" " << evt <<
59 " \tvirtual size = " << info.
vsize <<
" MB" <<
60 " \tresident set size = " << info.
rss <<
" MB" <<
61 " 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...
virtual const std::string & name() const
Retrieve the name of the instance.
SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
Small wrapper class for easy manipulation with generic counters and IStatSvc&ICounterSvc interface...
const CustomEventType & CustomEventTypeRef
Used in function calls for optimization purposes.
virtual StatusCode initialize()
virtual void i_before(CustomEventTypeRef evt, const std::string &caller)
Re-implement i_before to avoid monitoring the memory usage before a function.
bool isFailure() const
Test for a status code of FAILURE.
virtual ~MemStatAuditor()
#define DECLARE_COMPONENT(type)
virtual void i_printinfo(const std::string &msg, CustomEventTypeRef evt, const std::string &caller)
Report the memory usage.
This class is used for returning status codes from appropriate routines.
TYPE * get() const
Get interface pointer.
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.
virtual StatusCode initialize()
Monitors the memory use of each algorithm.
SmartIF< IChronoStatSvc > & statSvc()
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.