Gaudi Framework, version v22r4

Home   Generated: Fri Sep 2 2011

ChronoAuditor.cpp

Go to the documentation of this file.
00001 // ChronoAuditor:
00002 // An auditor that monitors time
00003 
00004 #ifdef __ICC
00005 // disable icc warning #654: overloaded virtual function "B::Y" is only partially overridden in class "C"
00006 //   TODO: there is only a partial overload of IAuditor::before and IAuditor::after
00007 #pragma warning(disable:654)
00008 #endif
00009 
00010 #include "ChronoAuditor.h"
00011 #include "GaudiKernel/AudFactory.h"
00012 
00013 DECLARE_AUDITOR_FACTORY(ChronoAuditor)
00014 
00015 ChronoAuditor::ChronoAuditor(const std::string& name, ISvcLocator* pSvcLocator)
00016 : CommonAuditor(name, pSvcLocator) {
00017   m_chronoSvc = serviceLocator()->service("ChronoStatSvc");
00018 }
00019 
00020 void ChronoAuditor::i_before(CustomEventTypeRef evt, const std::string& caller)
00021 {
00022   chronoSvc()->chronoStart(i_id(evt, caller));
00023 }
00024 
00025 void ChronoAuditor::i_after(CustomEventTypeRef evt, const std::string& caller, const StatusCode&)
00026 {
00027   chronoSvc()->chronoStop(i_id(evt, caller));
00028 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Fri Sep 2 2011 16:24:14 for Gaudi Framework, version v22r4 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004