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_node * | enter (octave_idx_type) |
tree_node * | exit (octave_idx_type) |
octave_value | get_hierarchical (double *total=nullptr) const |
tree_node & | operator= (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_node * | m_parent |
double | m_time |
Definition at line 136 of file profiler.h.
|
private |
Definition at line 173 of file profiler.h.
octave::profiler::tree_node::tree_node | ( | tree_node * | p, |
octave_idx_type | f | ||
) |
Definition at line 59 of file profiler.cc.
|
virtual |
Definition at line 63 of file profiler.cc.
|
delete |
|
inline |
Definition at line 150 of file profiler.h.
Referenced by octave::profiler::add_current_time().
void octave::profiler::tree_node::build_flat | ( | flat_profile & | data | ) | const |
Definition at line 99 of file profiler.cc.
References octave::profiler::stats::m_calls, m_parent, octave::profiler::stats::m_parents, octave::profiler::stats::m_recursive, and octave::profiler::stats::m_time.
Referenced by octave::profiler::get_flat().
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().
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().
octave_value octave::profiler::tree_node::get_hierarchical | ( | double * | total = nullptr | ) | const |
Definition at line 131 of file profiler.cc.
References Array< T >::assign(), get_hierarchical(), m_calls, m_time, n, octave_value(), and retval.
Referenced by get_hierarchical(), and octave::profiler::get_hierarchical().
|
private |
Definition at line 179 of file profiler.h.
Referenced by get_hierarchical().
|
private |
Definition at line 174 of file profiler.h.
|
private |
Definition at line 171 of file profiler.h.
|
private |
Definition at line 170 of file profiler.h.
Referenced by build_flat().
|
private |
Definition at line 177 of file profiler.h.
Referenced by get_hierarchical().