Methods
N
P
Attributes
[R] duration
[R] end
[R] name
[R] payload
[R] time
[R] transaction_id
Class Public methods
new(name, start, ending, transaction_id, payload)
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 39
def initialize(name, start, ending, transaction_id, payload)
  @name           = name
  @payload        = payload.dup
  @time           = start
  @transaction_id = transaction_id
  @end            = ending
  @duration       = 1000.0 * (@end - @time)
end
Instance Public methods
parent_of?(event)
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 48
def parent_of?(event)
  start = (time - event.time) * 1000
  start <= 0 && (start + duration >= event.duration)
end