Sha256: d42210bcc638f6dade1f0bc70ddd430414a144afd162ff1365af5098b8dff175

Contents?: true

Size: 364 Bytes

Versions: 5

Compression:

Stored size: 364 Bytes

Contents

module Merb
  module Rack
    class Profiler < Merb::Rack::Middleware

      # :api: private
      def initialize(app, min=1, iter=1)
        super(app)
        @min, @iter = min, iter
      end

      # :api: plugin
      def call(env)
        __profile__("profile_output", @min, @iter) do
          @app.call(env)
        end
      end

      
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
merb-core-1.0.2 lib/merb-core/rack/middleware/profiler.rb
merb-core-1.0.1 lib/merb-core/rack/middleware/profiler.rb
merb-core-1.0.3 lib/merb-core/rack/middleware/profiler.rb
merb-core-1.0.4 lib/merb-core/rack/middleware/profiler.rb
merb-core-1.0 lib/merb-core/rack/middleware/profiler.rb