class RubyProf::CallTree

they are generated while running a profile.
method called. Each CallTree has a parent and target method. You cannot create a CallTree object directly,
RubyProf::MethodInfo to keep track of which methods called a given method and which methods a given
The CallTree class is used to track the relationships between methods. It is a helper class used by

def <=>(other)

and total time.
Compares two CallTree instances. The comparison is based on the CallTree#parent, CallTree#target,
def <=>(other)
  if self.target == other.target && self.parent == other.parent
    0
  elsif self.total_time < other.total_time
    -1
  elsif self.total_time > other.total_time
    1
  else
    self.target.full_name <=> other.target.full_name
  end
end

def called

The number of times the parent method called the target method
def called
  self.measurement.called
end

def children_time

The time spent in child methods resulting from the parent method calling the target method
def children_time
  self.total_time - self.self_time - self.wait_time
end

def inspect

def inspect
  self.to_s
end

def self_time

The self time (of the parent) resulting from the parent method calling the target method
def self_time
  self.measurement.self_time
end

def to_s

:nodoc:
def to_s
  "<#{self.class.name} - #{self.target.full_name}>"
end

def total_time

The total time resulting from the parent method calling the target method
def total_time
  self.measurement.total_time
end

def wait_time

The wait time (of the parent) resulting from the parent method calling the target method
def wait_time
  self.measurement.wait_time
end