# File lib/phusion_passenger/classic_rails_extensions/analytics_logging/ac_benchmarking_extension.rb, line 29
        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