lib/rack/stackflame.rb in stackflame-0.1.0 vs lib/rack/stackflame.rb in stackflame-0.2.0
- old
+ new
@@ -1,13 +1,14 @@
module Rack
class Stackflame
- def initialize(app)
+ def initialize(app, options = {})
@app = app
+ @options = options
end
def call(env)
result = nil
- ::Stackflame.profile do
+ ::Stackflame.profile(@options) do
result = @app.call(env)
end
result
end
end