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