Module: PhusionPassenger::ClassicRailsExtensions::AnalyticsLogging::ACBenchmarkingExtension
- Defined in:
- lib/phusion_passenger/classic_rails_extensions/analytics_logging/ac_benchmarking_extension.rb
Instance Method Summary collapse
Instance Method Details
#benchmark_with_passenger(title, *args) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# 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 |