|
Gaudi Framework, version v23r4 |
| Home | Generated: Mon Sep 17 2012 |
00001 #ifndef GAUDIAUD_CHRONOAUDITOR_H 00002 #define GAUDIAUD_CHRONOAUDITOR_H 00003 00004 #include "CommonAuditor.h" 00005 00006 #include "GaudiKernel/IChronoStatSvc.h" 00007 00014 class ChronoAuditor : virtual public CommonAuditor { 00015 public: 00016 ChronoAuditor(const std::string& name, ISvcLocator* pSvcLocator); 00017 00018 virtual ~ChronoAuditor(); 00019 00020 virtual StatusCode initialize(); 00021 00022 private: 00024 virtual void i_before(CustomEventTypeRef evt, const std::string& caller); 00025 00027 virtual void i_after(CustomEventTypeRef evt, const std::string& caller, const StatusCode& sc); 00028 00030 inline std::string i_id(CustomEventTypeRef evt, const std::string& caller) { 00031 return caller + ":" + evt; 00032 } 00033 00034 SmartIF<IChronoStatSvc>& chronoSvc() { return m_chronoSvc; } 00035 SmartIF<IChronoStatSvc> m_chronoSvc; 00036 }; 00037 00038 #endif