Method: OneApm::TransactionSample::Segment#exclusive_duration

Defined in:
lib/one_apm/transaction/segment.rb

#exclusive_durationObject

return the duration of this segment without including the time in the called segments



98
99
100
101
102
103
104
105
# File 'lib/one_apm/transaction/segment.rb', line 98

def exclusive_duration
  d = duration

  called_segments.each do |segment|
    d -= segment.duration
  end
  d
end