Methods
public class
public instance
Attributes
| call_infos | [R] |
Public class methods
new
(call_infos)
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 4 4: def initialize(call_infos) 5: if call_infos.length == 0 6: raise(ArgumentError, "Must specify at least one call info.") 7: end 8: @call_infos = call_infos 9: end
Public instance methods
called
()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 45 45: def called 46: aggregate(:called) 47: end
children
()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 23 23: def children 24: call_infos.inject(Array.new) do |result, call_info| 25: result.concat(call_info.children) 26: end 27: end
children_time
()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 41 41: def children_time 42: aggregate(:children_time) 43: end
line
()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 19 19: def line 20: call_infos.first.line 21: end
parent
()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 15 15: def parent 16: call_infos.first.parent 17: end
self_time
()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 33 33: def self_time 34: aggregate(:self_time) 35: end
target
()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 11 11: def target 12: call_infos.first.target 13: end
to_s
()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 49 49: def to_s 50: "#{call_infos.first.full_name}" 51: end
total_time
()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 29 29: def total_time 30: aggregate(:total_time) 31: end
wait_time
()
[show source]
# File lib/ruby-prof/aggregate_call_info.rb, line 37 37: def wait_time 38: aggregate(:wait_time) 39: end