Class: Rack::StopProfiling
- Inherits:
-
Action
- Object
- Action
- Rack::StopProfiling
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
#act ⇒ Object
294
295
296
|
# File 'lib/rack/contrib/perftools_profiler.rb', line 294
def act
@profiler.stop
end
|
#response ⇒ Object
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
|