Class: NoBrainer::QueryRunner::Profiler
- Inherits:
-
Middleware
- Object
- Middleware
- NoBrainer::QueryRunner::Profiler
- Defined in:
- lib/no_brainer/query_runner/profiler.rb
Instance Method Summary collapse
Methods inherited from Middleware
Constructor Details
This class inherits a constructor from NoBrainer::QueryRunner::Middleware
Instance Method Details
#call(env) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/no_brainer/query_runner/profiler.rb', line 4 def call(env) profiler_start(env) @runner.call(env).tap { profiler_end(env) } rescue Exception => e profiler_end(env, e) raise e end |