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 | |
std::size_t | m_calls |
child_map | m_children |
octave_idx_type | m_fcn_id |
tree_node * | m_parent |
double | m_time |
Definition at line 140 of file profiler.h.
|
private |
Definition at line 177 of file profiler.h.
profiler::tree_node::tree_node | ( | tree_node * | p, |
octave_idx_type | f | ||
) |
Definition at line 58 of file profiler.cc.
|
virtual |
Definition at line 62 of file profiler.cc.
|
delete |
|
inline |
Definition at line 154 of file profiler.h.
Referenced by profiler::add_current_time().
void profiler::tree_node::build_flat | ( | flat_profile & | data | ) | const |
Definition at line 98 of file profiler.cc.
References profiler::stats::m_calls, m_parent, profiler::stats::m_parents, profiler::stats::m_recursive, profiler::stats::m_time, and panic_unless().
Referenced by profiler::get_flat().
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().
profiler::tree_node * profiler::tree_node::exit | ( | octave_idx_type | ) |
Definition at line 87 of file profiler.cc.
Referenced by profiler::exit_function().
octave_value profiler::tree_node::get_hierarchical | ( | double * | total = nullptr | ) | const |
Definition at line 131 of file profiler.cc.
References octave_map::assign(), get_hierarchical(), m_calls, m_time, n, and octave_value().
Referenced by get_hierarchical(), and profiler::get_hierarchical().
|
private |
Definition at line 183 of file profiler.h.
Referenced by enter(), and get_hierarchical().
|
private |
Definition at line 178 of file profiler.h.
|
private |
Definition at line 175 of file profiler.h.
|
private |
Definition at line 174 of file profiler.h.
Referenced by build_flat().
|
private |
Definition at line 181 of file profiler.h.
Referenced by get_hierarchical().