Module: Memprof::Filter
- Defined in:
- lib/memprof/tracer.rb
Overview
Legacy filter for tracing requests on Rails 2.2
require 'memprof/tracer'
around_filter(Memprof::Filter)
Class Method Summary collapse
Class Method Details
.filter(controller) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/memprof/tracer.rb', line 27 def self.filter(controller) env = controller.request.env info = controller.request.path_parameters Memprof.trace_filename ||= "/tmp/memprof_tracer-#{Process.pid}.json" Memprof.trace_request(env.merge('action_controller.request.path_parameters' => info)){ yield } end |