Method: QueryCounter::Middleware#call
- Defined in:
- lib/query_counter/middleware.rb
#call(env) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/query_counter/middleware.rb', line 7 def call(env) Thread.current[:starting_gc_count] = GC.count Thread.current[:starting_count_objects] = ObjectSpace.count_objects QueryCounter.reset @app.call(env) end |