Methods
- #
- D
- N
- P
Attributes
[R] | children | |
[RW] | end | |
[R] | name | |
[R] | payload | |
[R] | time | |
[R] | transaction_id |
Class Public methods
new(name, start, ending, transaction_id, payload)
Link
Instance Public methods
<<(event)
Link
duration()
Link
Returns the difference in milliseconds between when the execution of the event started and when it ended.
ActiveSupport::Notifications.subscribe('wait') do |*args|
@event = ActiveSupport::Notifications::Event.new(*args)
end
ActiveSupport::Notifications.instrument('wait') do
sleep 1
end
@event.duration # => 1000.138