GNU Octave  3.8.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 98 of file profiler.h.

Member Typedef Documentation

Definition at line 128 of file profiler.h.

Constructor & Destructor Documentation

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

Definition at line 76 of file profiler.cc.

profile_data_accumulator::tree_node::~tree_node ( )
virtual

Definition at line 80 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 105 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 87 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  fcn)

Definition at line 105 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 134 of file profiler.h.

Referenced by enter(), and get_hierarchical().

child_map profile_data_accumulator::tree_node::children
private

Definition at line 129 of file profiler.h.

octave_idx_type profile_data_accumulator::tree_node::fcn_id
private

Definition at line 126 of file profiler.h.

tree_node* profile_data_accumulator::tree_node::parent
private

Definition at line 125 of file profiler.h.

Referenced by build_flat().

double profile_data_accumulator::tree_node::time
private

Definition at line 132 of file profiler.h.

Referenced by get_hierarchical().


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