Class: Rack::StopProfiling
- Defined in:
- lib/rack/contrib/perftools_profiler.rb
Constant Summary
Constants inherited from Action
Action::DEFAULT_PRINTER, Action::PRINTER_CONTENT_TYPE
Instance Method Summary collapse
Methods inherited from Action
Constructor Details
This class inherits a constructor from Rack::Action
Instance Method Details
#act ⇒ Object
85 86 87 |
# File 'lib/rack/contrib/perftools_profiler.rb', line 85 def act @profiler.stop end |
#response ⇒ Object
89 90 91 |
# File 'lib/rack/contrib/perftools_profiler.rb', line 89 def response Response.new("Profiling is disabled\n", 200, {'Content-Type' => 'text/plain'}).finish end |