Class: Rack::StopProfiling

Inherits:
Action
  • Object
show all
Defined in:
lib/rack/contrib/perftools_profiler.rb

Instance Method Summary collapse

Methods inherited from Action

for_env, #initialize

Constructor Details

This class inherits a constructor from Rack::Action

Instance Method Details

#actObject



294
295
296
# File 'lib/rack/contrib/perftools_profiler.rb', line 294

def act
  @profiler.stop
end

#responseObject



298
299
300
301
302
303
304
305
# File 'lib/rack/contrib/perftools_profiler.rb', line 298

def response
  [200, {'Content-Type' => 'text/plain'}, 
   [<<-EOS
Profiling is now disabled.
Visit /__data__ to view the results.
EOS
   ]]
end