ATLAS Offline Software
Public Member Functions | Private Types | Private Attributes | List of all members
PerfMon::CallGraphAuditor Class Reference

#include <CallGraphAuditor.h>

Inheritance diagram for PerfMon::CallGraphAuditor:
Collaboration diagram for PerfMon::CallGraphAuditor:

Public Member Functions

 CallGraphAuditor (const std::string &name, ISvcLocator *pSvcLocator)
 Constructor. More...
 
virtual ~CallGraphAuditor ()
 Destructor. More...
 
virtual StatusCode initialize ()
 Gaudi hooks. More...
 
virtual void beforeInitialize (INamedInterface *alg)
 
virtual void afterInitialize (INamedInterface *alg)
 
virtual void beforeReinitialize (INamedInterface *alg)
 
virtual void afterReinitialize (INamedInterface *alg)
 
virtual void beforeExecute (INamedInterface *alg)
 
virtual void afterExecute (INamedInterface *alg, const StatusCode &)
 
virtual void beforeFinalize (INamedInterface *alg)
 
virtual void afterFinalize (INamedInterface *alg)
 

Private Types

typedef ServiceHandle< ICallGraphBuilderSvcICallGraphSvc_t
 

Private Attributes

ICallGraphSvc_t m_callGraphSvc
 Handle to the ICallGraphSvc service which will build the call graph tree (and annotate it) More...
 

Detailed Description

Definition at line 26 of file CallGraphAuditor.h.

Member Typedef Documentation

◆ ICallGraphSvc_t

Definition at line 62 of file CallGraphAuditor.h.

Constructor & Destructor Documentation

◆ CallGraphAuditor()

PerfMon::CallGraphAuditor::CallGraphAuditor ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Constructor.

Definition at line 32 of file CallGraphAuditor.cxx.

33  :
34  Auditor ( name, pSvcLocator ),
35  m_callGraphSvc( "PerfMon::CallGraphBuilderSvc/CallGraphSvc", name )
36 {
37  //
38  // Property declaration
39  //
40  //declareProperty( "Property", m_nProperty, "descr" );
41 
42  // for AuditorHandle ? someday ?
43  //declareInterface<ICallGraphAuditor>(this);
44 }

◆ ~CallGraphAuditor()

PerfMon::CallGraphAuditor::~CallGraphAuditor ( )
virtual

Destructor.

Definition at line 48 of file CallGraphAuditor.cxx.

49 {
50  //m_msg << MSG::DEBUG << "Calling destructor" << endmsg;
51 }

Member Function Documentation

◆ afterExecute()

void PerfMon::CallGraphAuditor::afterExecute ( INamedInterface *  alg,
const StatusCode &   
)
virtual

Definition at line 104 of file CallGraphAuditor.cxx.

105 {
106  m_callGraphSvc->closeNode( alg->name() + ":execute" );
107  return;
108 }

◆ afterFinalize()

void PerfMon::CallGraphAuditor::afterFinalize ( INamedInterface *  alg)
virtual

Definition at line 116 of file CallGraphAuditor.cxx.

117 {
118  m_callGraphSvc->closeNode( alg->name() + ":finalize" );
119  return;
120 }

◆ afterInitialize()

void PerfMon::CallGraphAuditor::afterInitialize ( INamedInterface *  alg)
virtual

Definition at line 80 of file CallGraphAuditor.cxx.

81 {
82  m_callGraphSvc->closeNode( alg->name() + ":initialize" );
83  return;
84 }

◆ afterReinitialize()

void PerfMon::CallGraphAuditor::afterReinitialize ( INamedInterface *  alg)
virtual

Definition at line 92 of file CallGraphAuditor.cxx.

93 {
94  m_callGraphSvc->closeNode( alg->name() + ":reinitialize" );
95  return;
96 }

◆ beforeExecute()

void PerfMon::CallGraphAuditor::beforeExecute ( INamedInterface *  alg)
virtual

Definition at line 98 of file CallGraphAuditor.cxx.

99 {
100  m_callGraphSvc->openNode( alg->name() + ":execute" );
101  return;
102 }

◆ beforeFinalize()

void PerfMon::CallGraphAuditor::beforeFinalize ( INamedInterface *  alg)
virtual

Definition at line 110 of file CallGraphAuditor.cxx.

111 {
112  m_callGraphSvc->openNode( alg->name() + ":finalize" );
113  return;
114 }

◆ beforeInitialize()

void PerfMon::CallGraphAuditor::beforeInitialize ( INamedInterface *  alg)
virtual

Definition at line 74 of file CallGraphAuditor.cxx.

75 {
76  m_callGraphSvc->openNode( alg->name() + ":initialize" );
77  return;
78 }

◆ beforeReinitialize()

void PerfMon::CallGraphAuditor::beforeReinitialize ( INamedInterface *  alg)
virtual

Definition at line 86 of file CallGraphAuditor.cxx.

87 {
88  m_callGraphSvc->openNode( alg->name() + ":reinitialize" );
89  return;
90 }

◆ initialize()

StatusCode PerfMon::CallGraphAuditor::initialize ( )
virtual

Gaudi hooks.

Definition at line 59 of file CallGraphAuditor.cxx.

60 {
61  // retrieve the callgraph service
62  if ( !m_callGraphSvc.retrieve().isSuccess() ) {
63  // FIXME: use a datamember MsgStream !
64  MsgStream msg( msgSvc(), name() );
65  msg << MSG::ERROR
66  << "Could not retrieve [" << m_callGraphSvc.typeAndName() << "] !!"
67  << endmsg;
68  return StatusCode::FAILURE;
69  }
70 
71  return StatusCode::SUCCESS;
72 }

Member Data Documentation

◆ m_callGraphSvc

ICallGraphSvc_t PerfMon::CallGraphAuditor::m_callGraphSvc
private

Handle to the ICallGraphSvc service which will build the call graph tree (and annotate it)

Definition at line 65 of file CallGraphAuditor.h.


The documentation for this class was generated from the following files:
SGout2dot.alg
alg
Definition: SGout2dot.py:243
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
PerfMon::CallGraphAuditor::m_callGraphSvc
ICallGraphSvc_t m_callGraphSvc
Handle to the ICallGraphSvc service which will build the call graph tree (and annotate it)
Definition: CallGraphAuditor.h:65
python.AutoConfigFlags.msg
msg
Definition: AutoConfigFlags.py:7