4 #pragma warning( disable : 654 ) 43 double deltaVSize = 0.00001;
48 if ( pInfo.
vsize > 0 ) {
56 info() << msg <<
" " << caller <<
" " << evt <<
" \tvirtual size = " << pInfo.
vsize <<
" MB" 57 <<
" \tresident set size = " << pInfo.
rss <<
" MB" 58 <<
" deltaVsize = " << deltaVSize <<
" MB" <<
endmsg;
64 Stat sts(
statSvc(), caller +
":VMem", deltaVSize );
MsgStream & msg() const
shortcut for the method msgStream(MSG::INFO)
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 & info() const
shortcut for the method msgStream(MSG::INFO)
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.
#define DECLARE_COMPONENT(type)
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.
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
This class is used for returning status codes from appropriate routines.
SmartIF< ISvcLocator > & serviceLocator() const override
The standard service locator.
double m_vSize
vsize of the previous call to printinfo
SmartIF< IChronoStatSvc > m_stat
static bool getProcInfo(procInfo &info)
Get the process informations.
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()
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
void i_printinfo(const std::string &msg, CustomEventTypeRef evt, const std::string &caller) override
Report the memory usage.