ATLAS Offline Software
VTuneAuditor.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef VTUNEAUDITOR_H
6 #define VTUNEAUDITOR_H
7 
8 // STL include(s)
9 #include <vector>
10 #include <string>
11 
12 // Framework include(s)
13 #include "GaudiKernel/Auditor.h"
14 #include "GaudiKernel/ServiceHandle.h"
16 
17 class VTuneAuditor : public Auditor
18 {
19 
20  public:
21 
23  VTuneAuditor(const std::string& name, ISvcLocator* pSvcLocator);
24 
26  virtual StatusCode initialize() override;
27 
29  void before( StandardEventType, INamedInterface* ) override;
30  void before( StandardEventType, const std::string& ) override { return; }
31 
32  void before( CustomEventTypeRef, INamedInterface* ) override { return; }
33  void before( CustomEventTypeRef, const std::string& ) override { return; }
34 
35  void after( StandardEventType, INamedInterface*, const StatusCode& ) override;
36  void after( StandardEventType, const std::string&, const StatusCode& ) override { return; }
37 
38  void after( CustomEventTypeRef, INamedInterface*, const StatusCode& ) override { return; }
39  void after( CustomEventTypeRef, const std::string&, const StatusCode& ) override { return; }
40 
41  private:
42 
45 
47  std::vector<std::string> m_algs;
48 
49 }; // end VTuneAuditor
50 
51 
52 #endif // VTUNEAUDITOR_H
VTuneAuditor::m_algs
std::vector< std::string > m_algs
Property: List of algorithms to profile.
Definition: VTuneAuditor.h:47
VTuneAuditor::before
void before(StandardEventType, INamedInterface *) override
Implement inherited methods from Auditor.
Definition: VTuneAuditor.cxx:61
VTuneAuditor::after
void after(CustomEventTypeRef, INamedInterface *, const StatusCode &) override
Definition: VTuneAuditor.h:38
VTuneAuditor::VTuneAuditor
VTuneAuditor(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: VTuneAuditor.cxx:14
VTuneAuditor::before
void before(CustomEventTypeRef, const std::string &) override
Definition: VTuneAuditor.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
VTuneAuditor::initialize
virtual StatusCode initialize() override
Gaudi hooks.
Definition: VTuneAuditor.cxx:28
VTuneAuditor::after
void after(StandardEventType, const std::string &, const StatusCode &) override
Definition: VTuneAuditor.h:36
VTuneAuditor::m_vtuneProfilerSvc
ServiceHandle< IVTuneProfilerSvc > m_vtuneProfilerSvc
Handle to VTuneProfilerSvc.
Definition: VTuneAuditor.h:44
VTuneAuditor::after
void after(CustomEventTypeRef, const std::string &, const StatusCode &) override
Definition: VTuneAuditor.h:39
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
VTuneAuditor
Definition: VTuneAuditor.h:18
VTuneAuditor::before
void before(StandardEventType, const std::string &) override
Definition: VTuneAuditor.h:30
VTuneAuditor::after
void after(StandardEventType, INamedInterface *, const StatusCode &) override
Definition: VTuneAuditor.cxx:77
VTuneAuditor::before
void before(CustomEventTypeRef, INamedInterface *) override
Definition: VTuneAuditor.h:32
IVTuneProfilerSvc.h
ServiceHandle< IVTuneProfilerSvc >