# File lib/active_support/notifications/fanout.rb, line 110 def initialize(pattern, delegate) @timestack = [] super end
# File lib/active_support/notifications/fanout.rb, line 123 def finish(name, id, payload) started = @timestack.pop @delegate.call(name, started, Time.now, id, payload) end
# File lib/active_support/notifications/fanout.rb, line 115 def publish(name, *args) @delegate.call name, *args end
# File lib/active_support/notifications/fanout.rb, line 119 def start(name, id, payload) @timestack.push Time.now end