GNU Octave  4.4.1
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 (tree_node *, octave_idx_type)
 tree_node (const tree_node &)=delete
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
double m_time

Detailed Description

Definition at line 134 of file profiler.h.

Member Typedef Documentation

◆ child_map

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

◆ ~tree_node()

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

Definition at line 63 of file

◆ tree_node() [2/2]

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

Member Function Documentation

◆ add_time()

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

Definition at line 148 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

References fcn, 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

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 )

Member Data Documentation

◆ m_calls

size_t octave::profiler::tree_node::m_calls

Definition at line 177 of file profiler.h.

Referenced by get_hierarchical().

◆ m_children

child_map octave::profiler::tree_node::m_children

Definition at line 172 of file profiler.h.

◆ m_fcn_id

octave_idx_type octave::profiler::tree_node::m_fcn_id

Definition at line 169 of file profiler.h.

◆ m_parent

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

Definition at line 168 of file profiler.h.

◆ m_time

double octave::profiler::tree_node::m_time

Definition at line 175 of file profiler.h.

Referenced by get_hierarchical().

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