Module: PhusionPassenger::ActiveSupport3Extensions::AnalyticsLogging::ASBenchmarkableExtension
- Defined in:
- lib/phusion_passenger/active_support3_extensions/init.rb
Instance Method Summary collapse
Instance Method Details
#benchmark_with_passenger(message = "Benchmarking", *args) ⇒ Object
209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/phusion_passenger/active_support3_extensions/init.rb', line 209 def benchmark_with_passenger( = "Benchmarking", *args) log = Thread.current[PASSENGER_ANALYTICS_WEB_LOG] if log log.measure("BENCHMARK: #{}") do benchmark_without_passenger(, *args) do yield end end else benchmark_without_passenger(, *args) do yield end end end |