GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
profile_data_accumulator::tree_node Class Reference
Collaboration diagram for profile_data_accumulator::tree_node:
Collaboration graph
[legend]

Public Member Functions

 tree_node (tree_node *, octave_idx_type)
 
virtual ~tree_node ()
 
void add_time (double dt)
 
void build_flat (flat_profile &) const
 
tree_nodeenter (octave_idx_type)
 
tree_nodeexit (octave_idx_type)
 
octave_value get_hierarchical (double *total=0) const
 

Private Types

typedef std::map
< octave_idx_type, tree_node * > 
child_map
 

Private Member Functions

 tree_node (const tree_node &)
 
tree_nodeoperator= (const tree_node &)
 

Private Attributes

unsigned calls
 
child_map children
 
octave_idx_type fcn_id
 
tree_nodeparent
 
double time
 

Detailed Description

Definition at line 122 of file profiler.h.

Member Typedef Documentation

Definition at line 152 of file profiler.h.

Constructor & Destructor Documentation

profile_data_accumulator::tree_node::tree_node ( tree_node p,
octave_idx_type  f 
)

Definition at line 58 of file profiler.cc.

profile_data_accumulator::tree_node::~tree_node ( )
virtual

Definition at line 62 of file profiler.cc.

profile_data_accumulator::tree_node::tree_node ( const tree_node )
private

Member Function Documentation

void profile_data_accumulator::tree_node::add_time ( double  dt)
inline

Definition at line 129 of file profiler.h.

Referenced by profile_data_accumulator::add_current_time().

void profile_data_accumulator::tree_node::build_flat ( flat_profile data) const
profile_data_accumulator::tree_node * profile_data_accumulator::tree_node::enter ( octave_idx_type  fcn)

Definition at line 69 of file profiler.cc.

References calls.

Referenced by profile_data_accumulator::enter_function().

profile_data_accumulator::tree_node * profile_data_accumulator::tree_node::exit ( octave_idx_type  )

Definition at line 87 of file profiler.cc.

Referenced by profile_data_accumulator::exit_function().

octave_value profile_data_accumulator::tree_node::get_hierarchical ( double total = 0) const
tree_node& profile_data_accumulator::tree_node::operator= ( const tree_node )
private

Member Data Documentation

unsigned profile_data_accumulator::tree_node::calls
private

Definition at line 158 of file profiler.h.

Referenced by enter(), and get_hierarchical().

child_map profile_data_accumulator::tree_node::children
private

Definition at line 153 of file profiler.h.

octave_idx_type profile_data_accumulator::tree_node::fcn_id
private

Definition at line 150 of file profiler.h.

tree_node* profile_data_accumulator::tree_node::parent
private

Definition at line 149 of file profiler.h.

Referenced by build_flat().

double profile_data_accumulator::tree_node::time
private

Definition at line 156 of file profiler.h.

Referenced by get_hierarchical().


The documentation for this class was generated from the following files: