| The Gaudi Framework v29r0 (ff2e7097)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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 : virtual public CommonAuditor
15 {
16 public:
17 ChronoAuditor( const std::string& name, ISvcLocator* pSvcLocator );
18
19 ~ChronoAuditor() override = default;
20
21 StatusCode initialize() override;
22
23 private:
25 void i_before( CustomEventTypeRef evt, const std::string& caller ) override;
26
28 void i_after( CustomEventTypeRef evt, const std::string& caller, const StatusCode& sc ) override;
29
31 inline std::string i_id( CustomEventTypeRef evt, const std::string& caller ) { return caller + ":" + evt; }
32
33 SmartIF<IChronoStatSvc>& chronoSvc() { return m_chronoSvc; }
34 SmartIF<IChronoStatSvc> m_chronoSvc;
35 };
36
37 #endif
SmartIF< IChronoStatSvc >
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
ChronoAuditor::chronoSvc
SmartIF< IChronoStatSvc > & chronoSvc()
Definition: ChronoAuditor.h:33
CommonAuditor
Base class with common functionalities shared by few auditor implementations.
Definition: CommonAuditor.h:8
ChronoAuditor::~ChronoAuditor
~ChronoAuditor() override=default
std::string
STL class.
ChronoAuditor::ChronoAuditor
ChronoAuditor(const std::string &name, ISvcLocator *pSvcLocator)
Definition: ChronoAuditor.cpp:14
ChronoAuditor::i_before
void i_before(CustomEventTypeRef evt, const std::string &caller) override
Default (catch-all) "before" Auditor hook.
Definition: ChronoAuditor.cpp:31
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
ChronoAuditor::m_chronoSvc
SmartIF< IChronoStatSvc > m_chronoSvc
Definition: ChronoAuditor.h:34
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:36
ChronoAuditor
Monitors the cpu time usage of each algorithm.
Definition: ChronoAuditor.h:14
ChronoAuditor::initialize
StatusCode initialize() override
Definition: ChronoAuditor.cpp:18
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:31
Auditor::name
const std::string & name() const override
Definition: Auditor.cpp:202
IOTest.evt
evt
Definition: IOTest.py:96