Class: Rack::Stackflame
- Inherits:
-
Object
- Object
- Rack::Stackflame
- Defined in:
- lib/rack/stackflame.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, options = {}) ⇒ Stackflame
constructor
A new instance of Stackflame.
Constructor Details
#initialize(app, options = {}) ⇒ Stackflame
Returns a new instance of Stackflame.
3 4 5 6 |
# File 'lib/rack/stackflame.rb', line 3 def initialize(app, = {}) @app = app @options = end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/rack/stackflame.rb', line 8 def call(env) result = nil ::Stackflame.profile(@options) do result = @app.call(env) end result end |