lib/ruby-prof/thread.rb in ruby-prof-0.16.2 vs lib/ruby-prof/thread.rb in ruby-prof-0.17.0
- old
+ new
@@ -8,15 +8,9 @@
def top_call_infos
top_methods.map(&:call_infos).flatten.select(&:root?)
end
- # This method detect recursive calls in the call tree of a given thread
- # It should be called only once for each thread
- def detect_recursion
- top_call_infos.each(&:detect_recursion)
- end
-
def total_time
self.top_methods.inject(0) do |sum, method_info|
method_info.call_infos.each do |call_info|
if call_info.parent.nil?
sum += call_info.total_time