Class/Module Index [+]

Quicksearch

PhusionPassenger::ClassicRailsExtensions::AnalyticsLogging::ACBenchmarkingExtension

Public Instance Methods

benchmark_with_passenger(title, *args) click to toggle source
# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.