Class: Rack::StartProfiling
- Inherits:
-
Action
- Object
- Action
- Rack::StartProfiling
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
276
277
278
|
# File 'lib/rack/contrib/perftools_profiler.rb', line 276
def act
@profiler.start
end
|
#response ⇒ Object
280
281
282
283
284
285
286
287
288
|
# File 'lib/rack/contrib/perftools_profiler.rb', line 280
def response
[200, {'Content-Type' => 'text/plain'},
[<<-EOS
Profiling is now enabled.
Visit the URLS that should be profiled.
When you are finished, visit /__stop__, then visit /__data__ to view the results.
EOS
]]
end
|