class RubyProf::AggregateCallInfo

  1. lib/ruby-prof/aggregate_call_info.rb
Parent: RubyProf

Attributes

Public Class methods

new (call_infos)
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 5
def initialize(call_infos)
  if call_infos.length == 0
    raise(ArgumentError, "Must specify at least one call info.")
  end
  @call_infos = call_infos
end

Public Instance methods

called ()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 46
def called
  aggregate(:called)
end
children ()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 24
def children
  call_infos.inject(Array.new) do |result, call_info|
    result.concat(call_info.children)
  end
end
children_time ()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 42
def children_time
  aggregate_minimal(:children_time)
end
line ()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 20
def line
  call_infos.first.line
end
parent ()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 16
def parent
  call_infos.first.parent
end
self_time ()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 34
def self_time
  aggregate(:self_time)
end
target ()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 12
def target
  call_infos.first.target
end
to_s ()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 50
def to_s
  "#{call_infos.first.full_name}"
end
total_time ()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 30
def total_time
  aggregate_minimal(:total_time)
end
wait_time ()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 38
def wait_time
  aggregate(:wait_time)
end