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