GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "profiler.h"
Classes | |
class | enter |
struct | stats |
class | tree_node |
Public Member Functions | |
profile_data_accumulator (void) | |
virtual | ~profile_data_accumulator () |
octave_value | get_flat (void) const |
octave_value | get_hierarchical (void) const |
bool | is_active (void) const |
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 | |
profile_data_accumulator (const profile_data_accumulator &) | |
void | add_current_time (void) |
void | enter_function (const std::string &) |
void | exit_function (const std::string &) |
profile_data_accumulator & | operator= (const profile_data_accumulator &) |
double | query_time () const |
Private Attributes | |
tree_node * | active_fcn |
tree_node * | call_tree |
bool | enabled |
fcn_index_map | fcn_index |
function_set | known_functions |
double | last_time |
Definition at line 35 of file profiler.h.
|
private |
Definition at line 170 of file profiler.h.
|
private |
Definition at line 118 of file profiler.h.
|
private |
Definition at line 169 of file profiler.h.
profile_data_accumulator::profile_data_accumulator | ( | void | ) |
Definition at line 177 of file profiler.cc.
|
virtual |
Definition at line 182 of file profiler.cc.
References call_tree.
|
private |
|
private |
Definition at line 386 of file profiler.cc.
References active_fcn, profile_data_accumulator::tree_node::add_time(), call_tree, last_time, and query_time().
Referenced by enter_function(), and exit_function().
|
private |
Definition at line 211 of file profiler.cc.
References active_fcn, add_current_time(), call_tree, profile_data_accumulator::tree_node::enter(), fcn_index, is_active(), known_functions, last_time, and query_time().
Referenced by profile_data_accumulator::enter< T >::enter().
|
private |
Definition at line 240 of file profiler.cc.
References active_fcn, add_current_time(), call_tree, profile_data_accumulator::tree_node::exit(), fcn_index, is_active(), last_time, and query_time().
Referenced by profile_data_accumulator::enter< T >::~enter().
octave_value profile_data_accumulator::get_flat | ( | void | ) | const |
Definition at line 286 of file profiler.cc.
References octave_map::assign(), profile_data_accumulator::tree_node::build_flat(), call_tree, profile_data_accumulator::stats::function_set_value(), known_functions, and octave_value().
Referenced by F__profiler_data__().
octave_value profile_data_accumulator::get_hierarchical | ( | void | ) | const |
Definition at line 348 of file profiler.cc.
References call_tree, and profile_data_accumulator::tree_node::get_hierarchical().
Referenced by F__profiler_data__().
|
inline |
Definition at line 88 of file profiler.h.
Referenced by profile_data_accumulator::enter< T >::enter(), enter_function(), exit_function(), F__profiler_enable__(), and reset().
|
private |
|
private |
Definition at line 374 of file profiler.cc.
References octave_time::double_value().
Referenced by add_current_time(), enter_function(), and exit_function().
void profile_data_accumulator::reset | ( | void | ) |
Definition at line 265 of file profiler.cc.
References call_tree, error(), fcn_index, is_active(), known_functions, and last_time.
Referenced by F__profiler_reset__().
void profile_data_accumulator::set_active | ( | bool | value | ) |
Definition at line 189 of file profiler.cc.
References active_fcn, call_tree, enabled, and last_time.
Referenced by F__profiler_enable__().
|
private |
Definition at line 178 of file profiler.h.
Referenced by add_current_time(), enter_function(), exit_function(), and set_active().
|
private |
Definition at line 177 of file profiler.h.
Referenced by add_current_time(), enter_function(), exit_function(), get_flat(), get_hierarchical(), reset(), set_active(), and ~profile_data_accumulator().
|
private |
Definition at line 175 of file profiler.h.
Referenced by set_active().
|
private |
Definition at line 173 of file profiler.h.
Referenced by enter_function(), exit_function(), and reset().
|
private |
Definition at line 172 of file profiler.h.
Referenced by enter_function(), get_flat(), and reset().
|
private |
Definition at line 181 of file profiler.h.
Referenced by add_current_time(), enter_function(), exit_function(), reset(), and set_active().