|
Gaudi Framework, version v23r2 |
| Home | Generated: Thu Jun 28 2012 |
Monitors the cpu time usage of each algorithm. More...
#include <ChronoAuditor.h>


Public Member Functions | |
| ChronoAuditor (const std::string &name, ISvcLocator *pSvcLocator) | |
| virtual | ~ChronoAuditor () |
| virtual StatusCode | initialize () |
Private Member Functions | |
| virtual void | i_before (CustomEventTypeRef evt, const std::string &caller) |
| Default (catch-all) "before" Auditor hook. | |
| virtual void | i_after (CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc) |
| Default (catch-all) "after" Auditor hook. | |
| std::string | i_id (CustomEventTypeRef evt, const std::string &caller) |
| Compute the id string to be used for the chrono entity. | |
| SmartIF< IChronoStatSvc > & | chronoSvc () |
Private Attributes | |
| SmartIF< IChronoStatSvc > | m_chronoSvc |
Monitors the cpu time usage of each algorithm.
Definition at line 14 of file ChronoAuditor.h.
| ChronoAuditor::ChronoAuditor | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator | ||
| ) |
Definition at line 15 of file ChronoAuditor.cpp.
: CommonAuditor(name, pSvcLocator) { }
| ChronoAuditor::~ChronoAuditor | ( | ) | [virtual] |
Definition at line 19 of file ChronoAuditor.cpp.
{}
| SmartIF<IChronoStatSvc>& ChronoAuditor::chronoSvc | ( | ) | [inline, private] |
Definition at line 34 of file ChronoAuditor.h.
{ return m_chronoSvc; }
| void ChronoAuditor::i_after | ( | CustomEventTypeRef | evt, |
| const std::string & | caller, | ||
| const StatusCode & | sc | ||
| ) | [private, virtual] |
Default (catch-all) "after" Auditor hook.
Implements CommonAuditor.
Definition at line 39 of file ChronoAuditor.cpp.
| void ChronoAuditor::i_before | ( | CustomEventTypeRef | evt, |
| const std::string & | caller | ||
| ) | [private, virtual] |
Default (catch-all) "before" Auditor hook.
Implements CommonAuditor.
Definition at line 34 of file ChronoAuditor.cpp.
| std::string ChronoAuditor::i_id | ( | CustomEventTypeRef | evt, |
| const std::string & | caller | ||
| ) | [inline, private] |
Compute the id string to be used for the chrono entity.
Definition at line 30 of file ChronoAuditor.h.
{
return caller + ":" + evt;
}
| StatusCode ChronoAuditor::initialize | ( | ) | [virtual] |
Reimplemented from Auditor.
Definition at line 21 of file ChronoAuditor.cpp.
{
StatusCode sc = CommonAuditor::initialize();
if (UNLIKELY(sc.isFailure())) return sc;
m_chronoSvc = serviceLocator()->service("ChronoStatSvc");
if (UNLIKELY(!m_chronoSvc.get())) {
MsgStream log(msgSvc(), name());
log << MSG::ERROR << "Cannot get ChronoStatSvc" << endmsg;
return StatusCode::FAILURE;
}
return StatusCode::SUCCESS;
}
SmartIF<IChronoStatSvc> ChronoAuditor::m_chronoSvc [private] |
Definition at line 35 of file ChronoAuditor.h.