module Spyke::Instrumentation::ControllerRuntime
Protected Instance Methods
append_info_to_payload(payload)
click to toggle source
Calls superclass method
# File lib/spyke/instrumentation/controller_runtime.rb, line 24 def append_info_to_payload(payload) super payload[:spyke_runtime] = (spyke_runtime || 0) + Spyke::Instrumentation::LogSubscriber.reset_runtime end
cleanup_view_runtime()
click to toggle source
Calls superclass method
# File lib/spyke/instrumentation/controller_runtime.rb, line 15 def cleanup_view_runtime spyke_runtime_before_render = Spyke::Instrumentation::LogSubscriber.reset_runtime self.spyke_runtime = (spyke_runtime || 0) + spyke_runtime_before_render runtime = super spyke_runtime_after_render = Spyke::Instrumentation::LogSubscriber.reset_runtime self.spyke_runtime += spyke_runtime_after_render runtime - spyke_runtime_after_render end
process_action(action, *args)
click to toggle source
Calls superclass method
# File lib/spyke/instrumentation/controller_runtime.rb, line 10 def process_action(action, *args) Spyke::Instrumentation::LogSubscriber.reset_runtime super end