GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
profiler::tree_node Class Reference
Collaboration diagram for profiler::tree_node:

Public Member Functions

 tree_node (const tree_node &)=delete
 
 tree_node (tree_node *, octave_idx_type)
 
virtual ~tree_node (void)
 
void add_time (double dt)
 
void build_flat (flat_profile &) const
 
tree_nodeenter (octave_idx_type)
 
tree_nodeexit (octave_idx_type)
 
octave_value get_hierarchical (double *total=nullptr) const
 
tree_nodeoperator= (const tree_node &)=delete
 

Private Types

typedef std::map< octave_idx_type, tree_node * > child_map
 

Private Attributes

std::size_t m_calls
 
child_map m_children
 
octave_idx_type m_fcn_id
 
tree_nodem_parent
 
double m_time
 

Detailed Description

Definition at line 140 of file profiler.h.

Member Typedef Documentation

◆ child_map

Definition at line 177 of file profiler.h.

Constructor & Destructor Documentation

◆ tree_node() [1/2]

profiler::tree_node::tree_node ( tree_node p,
octave_idx_type  f 
)

Definition at line 58 of file profiler.cc.

◆ ~tree_node()

profiler::tree_node::~tree_node ( void  )
virtual

Definition at line 62 of file profiler.cc.

◆ tree_node() [2/2]

profiler::tree_node::tree_node ( const tree_node )
delete

Member Function Documentation

◆ add_time()

void profiler::tree_node::add_time ( double  dt)
inline

Definition at line 154 of file profiler.h.

Referenced by profiler::add_current_time().

◆ build_flat()

void profiler::tree_node::build_flat ( flat_profile data) const

◆ enter()

profiler::tree_node * profiler::tree_node::enter ( octave_idx_type  fcn)

Definition at line 69 of file profiler.cc.

References m_calls.

Referenced by profiler::enter_function().

◆ exit()

profiler::tree_node * profiler::tree_node::exit ( octave_idx_type  )

Definition at line 87 of file profiler.cc.

Referenced by profiler::exit_function().

◆ get_hierarchical()

octave_value profiler::tree_node::get_hierarchical ( double *  total = nullptr) const

◆ operator=()

tree_node& profiler::tree_node::operator= ( const tree_node )
delete

Member Data Documentation

◆ m_calls

std::size_t profiler::tree_node::m_calls
private

Definition at line 183 of file profiler.h.

Referenced by enter(), and get_hierarchical().

◆ m_children

child_map profiler::tree_node::m_children
private

Definition at line 178 of file profiler.h.

◆ m_fcn_id

octave_idx_type profiler::tree_node::m_fcn_id
private

Definition at line 175 of file profiler.h.

◆ m_parent

tree_node* profiler::tree_node::m_parent
private

Definition at line 174 of file profiler.h.

Referenced by build_flat().

◆ m_time

double profiler::tree_node::m_time
private

Definition at line 181 of file profiler.h.

Referenced by get_hierarchical().


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