|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "GaudiKernel/INamedInterface.h"
17 #include "GaudiKernel/MsgStream.h"
36 ISvcLocator* pSvcLocator ) :
37 Auditor (
name, pSvcLocator ),
38 m_monSvc (
"PerfMonSvc/PerfMonSvc",
name )
60 if ( !
m_monSvc.retrieve().isSuccess() ) {
62 <<
"Could not retrieve [" <<
m_monSvc.typeAndName() <<
"] !!"
64 return StatusCode::FAILURE;
67 return StatusCode::SUCCESS;
77 return m_monSvc->startAud( PerfMon::Steps[State::ini], component->name() );
82 return m_monSvc->stopAud( PerfMon::Steps[State::ini], component->name() );
120 return m_monSvc->startAud (
evt==
"Callback" ?
"cbk" :
evt, caller);
PerfMonSvc_t m_monSvc
Pointer to the IPerfMonSvc.
virtual void afterReinitialize(INamedInterface *alg)
virtual void afterExecute(INamedInterface *alg, const StatusCode &)
PerfMonAuditor(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
virtual void beforeInitialize(INamedInterface *alg)
virtual ~PerfMonAuditor()
Destructor.
virtual void beforeReinitialize(INamedInterface *alg)
virtual StatusCode initialize()
Gaudi hooks.
Common definitions for the PerfMon packages.
msgSvc
Provide convenience handles for various services.
Some weak symbol referencing magic...
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual void afterFinalize(INamedInterface *alg)
virtual void after(IAuditor::CustomEventTypeRef evt, INamedInterface *caller, const StatusCode &sc)
Audit the end of a custom "event".
virtual void beforeExecute(INamedInterface *alg)
virtual void beforeFinalize(INamedInterface *alg)
virtual void before(IAuditor::CustomEventTypeRef evt, INamedInterface *caller)
Audit the start of a custom "event".
virtual void afterInitialize(INamedInterface *alg)