Public Member Functions | Private Types | Private Member Functions | Private Attributes

profile_data_accumulator::tree_node Class Reference

Collaboration diagram for profile_data_accumulator::tree_node:
Collaboration graph
[legend]

List of all members.

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=NULL) 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.

Referenced by enter().

profile_data_accumulator::tree_node::~tree_node (  )  [virtual]

Definition at line 80 of file profiler.cc.

References children.

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, children, and tree_node().

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.

References fcn_id, and parent.

Referenced by profile_data_accumulator::exit_function().

octave_value profile_data_accumulator::tree_node::get_hierarchical ( double total = NULL  )  const
tree_node& profile_data_accumulator::tree_node::operator= ( const tree_node  )  [private]

Member Data Documentation

Definition at line 134 of file profiler.h.

Referenced by build_flat(), enter(), and get_hierarchical().

Definition at line 129 of file profiler.h.

Referenced by build_flat(), enter(), get_hierarchical(), and ~tree_node().

Definition at line 126 of file profiler.h.

Referenced by build_flat(), and exit().

Definition at line 125 of file profiler.h.

Referenced by build_flat(), and exit().

Definition at line 132 of file profiler.h.

Referenced by build_flat(), and get_hierarchical().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines