Methods
Attributes
| [R] | name | |
| [R] | time | |
| [R] | end | |
| [R] | transaction_id | |
| [R] | payload | |
| [R] | duration |
Public Class methods
[ show source ]
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 39
39: def initialize(name, start, ending, transaction_id, payload)
40: @name = name
41: @payload = payload.dup
42: @time = start
43: @transaction_id = transaction_id
44: @end = ending
45: @duration = 1000.0 * (@end - @time)
46: end
Public Instance methods
[ show source ]
# File activesupport/lib/active_support/notifications/instrumenter.rb, line 48
48: def parent_of?(event)
49: start = (time - event.time) * 1000
50: start <= 0 && (start + duration >= event.duration)
51: end