#include <CallGraphBuilderSvc.h>
Definition at line 40 of file CallGraphBuilderSvc.h.
◆ CallGraph_t
◆ NodeId_t
◆ CallGraphBuilderSvc() [1/2]
PerfMon::CallGraphBuilderSvc::CallGraphBuilderSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Constructor with parameters:
Definition at line 39 of file CallGraphBuilderSvc.cxx.
50 m_nameToId[s_rootName] = s_rootId;
51 m_idToName[s_rootId ] = s_rootName;
◆ ~CallGraphBuilderSvc()
PerfMon::CallGraphBuilderSvc::~CallGraphBuilderSvc |
( |
| ) |
|
|
virtual |
◆ CallGraphBuilderSvc() [2/2]
PerfMon::CallGraphBuilderSvc::CallGraphBuilderSvc |
( |
| ) |
|
|
private |
◆ closeNode()
void PerfMon::CallGraphBuilderSvc::closeNode |
( |
const std::string & |
nodeName | ) |
|
|
virtual |
◆ finalize()
StatusCode PerfMon::CallGraphBuilderSvc::finalize |
( |
| ) |
|
◆ initialize()
StatusCode PerfMon::CallGraphBuilderSvc::initialize |
( |
| ) |
|
Gaudi Service Implementation.
Definition at line 63 of file CallGraphBuilderSvc.cxx.
66 msg().setLevel( m_outputLevel.value() );
69 <<
"Initializing " <<
name() <<
"..."
75 <<
"Could not initialize base class !!"
77 return StatusCode::FAILURE;
82 return StatusCode::SUCCESS;
◆ interfaceID()
const InterfaceID & PerfMon::CallGraphBuilderSvc::interfaceID |
( |
| ) |
|
|
inlinestatic |
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ openNode()
void PerfMon::CallGraphBuilderSvc::openNode |
( |
const std::string & |
nodeName | ) |
|
|
virtual |
open a new node in the call graph tree
Implements ICallGraphBuilderSvc.
Definition at line 117 of file CallGraphBuilderSvc.cxx.
119 std::scoped_lock lock(
m_mutex);
121 if ( m_nameToId.find( nodeName ) == m_nameToId.end() ) {
122 m_nameToId[nodeName] = ++m_uuid;
123 m_idToName[m_uuid ] = nodeName;
126 const NodeId_t nodeId = m_nameToId[nodeName];
128 m_stack.push( nodeId );
130 boost::add_edge(
parentId, nodeId, m_graph );
133 <<
"--> [" << nodeName <<
"] = " << nodeId <<
"\t"
134 <<
"(parent = " << m_idToName[
parentId] <<
")"
◆ queryInterface()
StatusCode PerfMon::CallGraphBuilderSvc::queryInterface |
( |
const InterfaceID & |
riid, |
|
|
void ** |
ppvInterface |
|
) |
| |
|
virtual |
Definition at line 100 of file CallGraphBuilderSvc.cxx.
107 return AthService::queryInterface(riid, ppvInterface);
110 return StatusCode::SUCCESS;
◆ SvcFactory< CallGraphBuilderSvc >
◆ ATLAS_THREAD_SAFE [1/5]
NodeId_t m_uuid PerfMon::CallGraphBuilderSvc::ATLAS_THREAD_SAFE |
|
staticprivate |
◆ ATLAS_THREAD_SAFE [2/5]
GaudiUtils::HashMap<std::string, NodeId_t> m_nameToId PerfMon::CallGraphBuilderSvc::ATLAS_THREAD_SAFE |
|
private |
◆ ATLAS_THREAD_SAFE [3/5]
GaudiUtils::HashMap<NodeId_t, std::string> m_idToName PerfMon::CallGraphBuilderSvc::ATLAS_THREAD_SAFE |
|
private |
◆ ATLAS_THREAD_SAFE [4/5]
std::stack<NodeId_t> m_stack PerfMon::CallGraphBuilderSvc::ATLAS_THREAD_SAFE |
|
private |
◆ ATLAS_THREAD_SAFE [5/5]
CallGraph_t m_graph PerfMon::CallGraphBuilderSvc::ATLAS_THREAD_SAFE |
|
private |
◆ m_mutex
std::recursive_mutex PerfMon::CallGraphBuilderSvc::m_mutex |
|
private |
The documentation for this class was generated from the following files: