module PhusionPassenger::ClassicRailsExtensions::AnalyticsLogging::ACBenchmarkingExtension

def benchmark_with_passenger(title, *args)

def benchmark_with_passenger(title, *args)
	# Log ActionController benchmarking blocks.
	log = Thread.current[PASSENGER_ANALYTICS_WEB_LOG]
	if log
		log.measure("BENCHMARK: #{title}") do
			benchmark_without_passenger(title, *args) do
				yield
			end
		end
	else
		benchmark_without_passenger(title, *args) do
			yield
		end
	end
end