AppDynamics C/C++ SDK  21.3
Reference documentation for the C/C++ SDK.
appd::sdk::CallGraph Class Reference

#include <appdynamics.h>

Public Member Functions

 CallGraph (BT &bt, const std::string &class_name, const std::string &method_name, const std::string &file_path, int32_t line_number, int32_t time_msec, appd_frame_type frame_type)
 
 ~CallGraph ()=default
 
 CallGraph ()=delete
 
 CallGraph (const CallGraph &)=delete
 
CallGraphoperator= (const CallGraph &)=delete
 
bool add_to_snapshot () const
 
CallGraphElementroot () const
 
BTbt ()
 
const BTbt () const
 

Private Attributes

BTm_bt
 
const std::unique_ptr< CallGraphElementm_root
 

Detailed Description

A pre-populated call graph.

Provide the execution time and specify the parent/child (caller/called) relationships to construct the call graph tree. Once the tree is constructed, you can add it to a business transaction with 'add_to_snapshot'. You can use appd_bt_is_snapshotting to check if the business transaction is snapshotting before generating the data and calling this function.

Constructor & Destructor Documentation

◆ CallGraph() [1/3]

appd::sdk::CallGraph::CallGraph ( BT bt,
const std::string &  class_name,
const std::string &  method_name,
const std::string &  file_path,
int32_t  line_number,
int32_t  time_msec,
appd_frame_type  frame_type 
)
inline

For the other parameters see the "Frame" class. They refer to the root of the call graph.

Parameters
btThe business transaction for this call graph.
time_msec
class_name
method_name
file_path
line_number
frame_typeThe time in milliseconds for the execution of this method.

◆ ~CallGraph()

appd::sdk::CallGraph::~CallGraph ( )
default

◆ CallGraph() [2/3]

appd::sdk::CallGraph::CallGraph ( )
delete

◆ CallGraph() [3/3]

appd::sdk::CallGraph::CallGraph ( const CallGraph )
delete

Member Function Documentation

◆ add_to_snapshot()

bool appd::sdk::CallGraph::add_to_snapshot ( ) const
inline

◆ bt() [1/2]

BT& appd::sdk::CallGraph::bt ( )
inline

◆ bt() [2/2]

const BT& appd::sdk::CallGraph::bt ( ) const
inline

◆ operator=()

CallGraph& appd::sdk::CallGraph::operator= ( const CallGraph )
delete

◆ root()

CallGraphElement& appd::sdk::CallGraph::root ( ) const
inline

Member Data Documentation

◆ m_bt

BT& appd::sdk::CallGraph::m_bt
private

◆ m_root

const std::unique_ptr<CallGraphElement> appd::sdk::CallGraph::m_root
private

The documentation for this class was generated from the following file: