| The Gaudi Framework v32r1 (f65d50dc)

ChronoAuditor.h
Go to the documentation of this file.
1 #ifndef GAUDIAUD_CHRONOAUDITOR_H
2 #define GAUDIAUD_CHRONOAUDITOR_H
3
4 #include "CommonAuditor.h"
5
6 #include "GaudiKernel/IChronoStatSvc.h"
7
14 class ChronoAuditor : public CommonAuditor {
15 public:
16 using CommonAuditor::CommonAuditor;
17
18 StatusCode initialize() override;
19
20 private:
22 void i_before( CustomEventTypeRef evt, const std::string& caller ) override;
23
25 void i_after( CustomEventTypeRef evt, const std::string& caller, const StatusCode& sc ) override;
26
28 inline std::string i_id( CustomEventTypeRef evt, const std::string& caller ) { return caller + ":" + evt; }
29
30 SmartIF<IChronoStatSvc>& chronoSvc() { return m_chronoSvc; }
31 SmartIF<IChronoStatSvc> m_chronoSvc;
32 };
33
34 #endif
SmartIF< IChronoStatSvc >
ChronoAuditor::chronoSvc
SmartIF< IChronoStatSvc > & chronoSvc()
Definition: ChronoAuditor.h:30
CommonAuditor
Base class with common functionalities shared by few auditor implementations.
Definition: CommonAuditor.h:8
std::string
STL class.
ChronoAuditor::i_before
void i_before(CustomEventTypeRef evt, const std::string &caller) override
Default (catch-all) "before" Auditor hook.
Definition: ChronoAuditor.cpp:26
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
ChronoAuditor::m_chronoSvc
SmartIF< IChronoStatSvc > m_chronoSvc
Definition: ChronoAuditor.h:31
ChronoAuditor::i_after
void i_after(CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc) override
Default (catch-all) "after" Auditor hook.
Definition: ChronoAuditor.cpp:30
ChronoAuditor
Monitors the cpu time usage of each algorithm.
Definition: ChronoAuditor.h:14
ChronoAuditor::initialize
StatusCode initialize() override
Definition: ChronoAuditor.cpp:14
IChronoStatSvc.h
CommonAuditor.h
ChronoAuditor::i_id
std::string i_id(CustomEventTypeRef evt, const std::string &caller)
Compute the id string to be used for the chrono entity.
Definition: ChronoAuditor.h:28
IOTest.evt
evt
Definition: IOTest.py:94