Module: PhusionPassenger::ActiveSupport3Extensions::AnalyticsLogging::ACExtension

Defined in:
lib/phusion_passenger/active_support3_extensions/init.rb

Instance Method Summary collapse

Instance Method Details

#process_action(action, *args) ⇒ Object



184
185
186
187
188
189
190
191
192
193
194
# File 'lib/phusion_passenger/active_support3_extensions/init.rb', line 184

def process_action(action, *args)
	log = request.env[PASSENGER_ANALYTICS_WEB_LOG]
	if log
		log.message("Controller action: #{self.class.name}##{action_name}")
		log.measure("framework request processing") do
			super
		end
	else
		super
	end
end

#render(*args) ⇒ Object



196
197
198
199
200
201
202
203
204
205
# File 'lib/phusion_passenger/active_support3_extensions/init.rb', line 196

def render(*args)
	log = request.env[PASSENGER_ANALYTICS_WEB_LOG]
	if log
		log.measure("view rendering") do
			super
		end
	else
		super
	end
end