| The Gaudi Framework v28r2-patches (bc4ad17a)

- 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 public:
16 ChronoAuditor(const std::string& name, ISvcLocator* pSvcLocator);
17
18 ~ChronoAuditor() override = default;
19
20 StatusCode initialize() override;
21
22 private:
24 void i_before(CustomEventTypeRef evt, const std::string& caller) override;
25
27 void i_after(CustomEventTypeRef evt, const std::string& caller, const StatusCode& sc) override;
28
30 inline std::string i_id(CustomEventTypeRef evt, const std::string& caller) {
31 return caller + ":" + evt;
32 }
33
34 SmartIF<IChronoStatSvc>& chronoSvc() { return m_chronoSvc; }
35 SmartIF<IChronoStatSvc> m_chronoSvc;
36 };
37
38 #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:34
CommonAuditor
Base class with common functionalities shared by few auditor implementations.
Definition: CommonAuditor.h:5
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:30
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
ChronoAuditor::m_chronoSvc
SmartIF< IChronoStatSvc > m_chronoSvc
Definition: ChronoAuditor.h:35
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:35
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:30
Auditor::name
const std::string & name() const override
Definition: Auditor.cpp:202
IOTest.evt
evt
Definition: IOTest.py:85