ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
PerformanceMonitoring
PerfMonComps
src
PerfMonMTAuditor.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// Framework includes
6
#include "
AthenaBaseComps/AthCheckMacros.h
"
7
8
// PerfMonKernel includes
9
#include "
PerfMonKernel/IPerfMonMTSvc.h
"
10
11
// PerfMonComps includes
12
#include "
PerfMonMTAuditor.h
"
13
14
15
/*
16
* Constructor
17
*/
18
PerfMonMTAuditor::PerfMonMTAuditor
(
const
std::string& name,
19
ISvcLocator* pSvcLocator ) :
20
Auditor ( name, pSvcLocator ),
21
m_perfMonMTSvc
(
"PerfMonMTSvc"
, name )
22
{
23
}
24
25
/*
26
* Initialize the Auditor
27
*/
28
StatusCode
PerfMonMTAuditor::initialize
()
29
{
30
ATH_CHECK
(
m_perfMonMTSvc
.retrieve() );
31
32
return
StatusCode::SUCCESS;
33
}
34
35
/*
36
* Implementation of base class methods
37
*/
38
void
PerfMonMTAuditor::before
(
const
std::string& event,
const
std::string& name,
39
const
EventContext& ctx) {
40
m_perfMonMTSvc
->startAud( event , name , ctx );
41
}
42
43
void
PerfMonMTAuditor::after
(
const
std::string& event,
const
std::string& name,
44
const
EventContext& ctx,
const
StatusCode&) {
45
m_perfMonMTSvc
->stopAud( event , name , ctx);
46
}
AthCheckMacros.h
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
IPerfMonMTSvc.h
PerfMonMTAuditor.h
PerfMonMTAuditor::before
virtual void before(const std::string &event, const std::string &name, const EventContext &) override
Implement inherited methods from Auditor.
Definition
PerfMonMTAuditor.cxx:38
PerfMonMTAuditor::PerfMonMTAuditor
PerfMonMTAuditor(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
PerfMonMTAuditor.cxx:18
PerfMonMTAuditor::after
virtual void after(const std::string &event, const std::string &name, const EventContext &, const StatusCode &) override
Definition
PerfMonMTAuditor.cxx:43
PerfMonMTAuditor::initialize
virtual StatusCode initialize() override
Gaudi hooks.
Definition
PerfMonMTAuditor.cxx:28
PerfMonMTAuditor::m_perfMonMTSvc
ServiceHandle< IPerfMonMTSvc > m_perfMonMTSvc
Handle to PerfMonMTSvc.
Definition
PerfMonMTAuditor.h:38
Generated on
for ATLAS Offline Software by
1.17.0