Class: Rack::StopProfiling

Inherits:
Action
  • Object
show all
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

for_request, #initialize

Constructor Details

This class inherits a constructor from Rack::Action

Instance Method Details

#actObject



85
86
87
# File 'lib/rack/contrib/perftools_profiler.rb', line 85

def act
  @profiler.stop
end

#responseObject



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