Guest User

Untitled

a guest
Feb 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. module Merb
  2. module Rack
  3. class Profiler < Merb::Rack::Middleware
  4.  
  5. def initialize(app, min=1, iter=1)
  6. super(app)
  7. @min, @iter = min, iter
  8. end
  9.  
  10. def call(env)
  11. __profile__("profile_output", @min, @iter) do
  12. @app.call(env)
  13. end
  14. end
  15.  
  16.  
  17. end
  18. end
  19. end
Add Comment
Please, Sign In to add comment