#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 192 of file profiler.h.
|
private |
Definition at line 136 of file profiler.h.
|
private |
Definition at line 191 of file profiler.h.
profiler::profiler | ( | void | ) |
Definition at line 175 of file profiler.cc.
|
delete |
|
virtual |
Definition at line 181 of file profiler.cc.
References m_call_tree.
|
private |
Definition at line 375 of file profiler.cc.
References 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 profiler::enter< T >::enter(), enter_function(), exit_function(), F__profiler_enable__(), and reset().
|
private |
Definition at line 193 of file profiler.cc.
References add_current_time(), enabled(), profiler::tree_node::enter(), m_active_fcn, m_call_tree, m_fcn_index, m_known_functions, m_last_time, panic_unless(), and query_time().
Referenced by profiler::enter< T >::enter().
|
private |
Definition at line 226 of file profiler.cc.
References add_current_time(), enabled(), profiler::tree_node::exit(), m_active_fcn, m_call_tree, m_fcn_index, m_last_time, panic_unless(), and query_time().
Referenced by profiler::enter< T >::~enter().
octave_value profiler::get_flat | ( | void | ) | const |
Definition at line 275 of file profiler.cc.
References profiler::tree_node::build_flat(), profiler::stats::function_set_value(), m, m_call_tree, m_known_functions, n, and octave_value().
Referenced by F__profiler_data__().
octave_value profiler::get_hierarchical | ( | void | ) | const |
Definition at line 337 of file profiler.cc.
References profiler::tree_node::get_hierarchical(), m, and m_call_tree.
Referenced by F__profiler_data__().
|
private |
Definition at line 363 of file profiler.cc.
Referenced by add_current_time(), enter_function(), and exit_function().
void profiler::reset | ( | void | ) |
Definition at line 256 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 profiler::set_active | ( | bool | value | ) |
Definition at line 187 of file profiler.cc.
References m_enabled.
Referenced by F__profiler_enable__().
|
private |
Definition at line 200 of file profiler.h.
Referenced by add_current_time(), enter_function(), exit_function(), and reset().
|
private |
Definition at line 199 of file profiler.h.
Referenced by ~profiler(), enter_function(), exit_function(), get_flat(), get_hierarchical(), and reset().
|
private |
Definition at line 197 of file profiler.h.
Referenced by set_active().
|
private |
Definition at line 195 of file profiler.h.
Referenced by enter_function(), exit_function(), and reset().
|
private |
Definition at line 194 of file profiler.h.
Referenced by enter_function(), get_flat(), and reset().
|
private |
Definition at line 204 of file profiler.h.
Referenced by add_current_time(), enter_function(), exit_function(), and reset().