The Gaudi Framework  v30r3 (a5ef0a68)
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 
15 {
16 public:
18 
19  StatusCode initialize() override;
20 
21 private:
23  void i_before( CustomEventTypeRef evt, const std::string& caller ) override;
24 
26  void i_after( CustomEventTypeRef evt, const std::string& caller, const StatusCode& sc ) override;
27 
29  inline std::string i_id( CustomEventTypeRef evt, const std::string& caller ) { return caller + ":" + evt; }
30 
33 };
34 
35 #endif
SmartIF< IChronoStatSvc > & chronoSvc()
Definition: ChronoAuditor.h:31
Base class with common functionalities shared by few auditor implementations.
Definition: CommonAuditor.h:8
STL class.
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:51
SmartIF< IChronoStatSvc > m_chronoSvc
Definition: ChronoAuditor.h:32
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
CommonAuditor(const std::string &name, ISvcLocator *svcloc)
Constructor.
std::string i_id(CustomEventTypeRef evt, const std::string &caller)
Compute the id string to be used for the chrono entity.
Definition: ChronoAuditor.h:29
evt
Definition: IOTest.py:96