#include "profiler.h"
Classes | |
class | enter |
struct | stats |
class | tree_node |
Public Member Functions | |
profiler (const profiler &)=delete | |
profiler (void) | |
virtual | ~profiler (void) |
bool | enabled (void) const |
octave_value | get_flat (void) const |
octave_value | get_hierarchical (void) const |
profiler & | operator= (const profiler &)=delete |
void | reset (void) |
void | set_active (bool) |
Private Types | |
typedef std::map< std::string, octave_idx_type > | fcn_index_map |
typedef std::vector< stats > | flat_profile |
typedef std::vector< std::string > | function_set |
Private Member Functions | |
void | add_current_time (void) |
void | enter_function (const std::string &) |
void | exit_function (const std::string &) |
double | query_time (void) const |
Private Attributes | |
tree_node * | m_active_fcn |
tree_node * | m_call_tree |
bool | m_enabled |
fcn_index_map | m_fcn_index |
function_set | m_known_functions |
double | m_last_time |
Definition at line 41 of file profiler.h.
|
private |
Definition at line 187 of file profiler.h.
|
private |
Definition at line 132 of file profiler.h.
|
private |
Definition at line 186 of file profiler.h.
octave::profiler::profiler | ( | void | ) |
Definition at line 176 of file profiler.cc.
|
delete |
|
virtual |
Definition at line 182 of file profiler.cc.
References m_call_tree.
|
private |
Definition at line 374 of file profiler.cc.
References octave::profiler::tree_node::add_time(), m_active_fcn, m_last_time, and query_time().
Referenced by enter_function(), and exit_function().
|
inline |
Definition at line 102 of file profiler.h.
Referenced by octave::profiler::enter< T >::enter(), enter_function(), exit_function(), F__profiler_enable__(), and reset().
|
private |
Definition at line 194 of file profiler.cc.
References add_current_time(), enabled(), octave::profiler::tree_node::enter(), m_active_fcn, m_call_tree, m_fcn_index, m_known_functions, m_last_time, and query_time().
Referenced by octave::profiler::enter< T >::enter().
|
private |
Definition at line 227 of file profiler.cc.
References add_current_time(), enabled(), octave::profiler::tree_node::exit(), m_active_fcn, m_call_tree, m_fcn_index, m_last_time, and query_time().
Referenced by octave::profiler::enter< T >::~enter().
octave_value octave::profiler::get_flat | ( | void | ) | const |
Definition at line 274 of file profiler.cc.
References octave::profiler::tree_node::build_flat(), octave::profiler::stats::function_set_value(), m, m_call_tree, m_known_functions, n, octave_value(), and retval.
Referenced by F__profiler_data__().
octave_value octave::profiler::get_hierarchical | ( | void | ) | const |
Definition at line 336 of file profiler.cc.
References octave::profiler::tree_node::get_hierarchical(), m, m_call_tree, and retval.
Referenced by F__profiler_data__().
|
private |
Definition at line 362 of file profiler.cc.
References octave::sys::time::double_value().
Referenced by add_current_time(), enter_function(), and exit_function().
void octave::profiler::reset | ( | void | ) |
Definition at line 255 of file profiler.cc.
References enabled(), error(), m_active_fcn, m_call_tree, m_fcn_index, m_known_functions, and m_last_time.
Referenced by F__profiler_reset__().
void octave::profiler::set_active | ( | bool | value | ) |
Definition at line 188 of file profiler.cc.
References m_enabled.
Referenced by F__profiler_enable__().
|
private |
Definition at line 195 of file profiler.h.
Referenced by add_current_time(), enter_function(), exit_function(), and reset().
|
private |
Definition at line 194 of file profiler.h.
Referenced by ~profiler(), enter_function(), exit_function(), get_flat(), get_hierarchical(), and reset().
|
private |
Definition at line 192 of file profiler.h.
Referenced by set_active().
|
private |
Definition at line 190 of file profiler.h.
Referenced by enter_function(), exit_function(), and reset().
|
private |
Definition at line 189 of file profiler.h.
Referenced by enter_function(), get_flat(), and reset().
|
private |
Definition at line 198 of file profiler.h.
Referenced by add_current_time(), enter_function(), exit_function(), and reset().