Method: OneApm::Support::TracedMethodStack#note_children_time

Defined in:
lib/one_apm/support/traced_method_stack.rb

#note_children_time(frame, time, deduct_call_time_from_parent) ⇒ Object



75
76
77
78
79
80
81
82
83
# File 'lib/one_apm/support/traced_method_stack.rb', line 75

def note_children_time(frame, time, deduct_call_time_from_parent)
  if !@stack.empty?
    if deduct_call_time_from_parent
      @stack.last.children_time += (time - frame.start_time)
    else
      @stack.last.children_time += frame.children_time
    end
  end
end