GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::profiler::tree_node Class Reference
Collaboration diagram for octave::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

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 136 of file profiler.h.

Member Typedef Documentation

◆ child_map

Definition at line 173 of file profiler.h.

Constructor & Destructor Documentation

◆ tree_node() [1/2]

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

Definition at line 59 of file profiler.cc.

◆ ~tree_node()

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

Definition at line 63 of file profiler.cc.

◆ tree_node() [2/2]

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

Member Function Documentation

◆ add_time()

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

Definition at line 150 of file profiler.h.

Referenced by octave::profiler::add_current_time().

◆ build_flat()

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

◆ enter()

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

Definition at line 70 of file profiler.cc.

References Array< T >::find(), and retval.

Referenced by octave::profiler::enter_function().

◆ exit()

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

Definition at line 88 of file profiler.cc.

Referenced by octave::profiler::exit_function().

◆ get_hierarchical()

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

◆ operator=()

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

Member Data Documentation

◆ m_calls

size_t octave::profiler::tree_node::m_calls
private

Definition at line 179 of file profiler.h.

Referenced by get_hierarchical().

◆ m_children

child_map octave::profiler::tree_node::m_children
private

Definition at line 174 of file profiler.h.

◆ m_fcn_id

octave_idx_type octave::profiler::tree_node::m_fcn_id
private

Definition at line 171 of file profiler.h.

◆ m_parent

tree_node* octave::profiler::tree_node::m_parent
private

Definition at line 170 of file profiler.h.

Referenced by build_flat().

◆ m_time

double octave::profiler::tree_node::m_time
private

Definition at line 177 of file profiler.h.

Referenced by get_hierarchical().


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