Class: BenchMiddleware
- Inherits:
-
Gooddata::Bricks::Middleware
- Object
- Gooddata::Bricks::Middleware
- BenchMiddleware
- Defined in:
- lib/gooddata/bricks/middleware/bench_middleware.rb
Instance Method Summary collapse
Methods inherited from Gooddata::Bricks::Middleware
Methods included from Gooddata::Bricks::Utils
Constructor Details
This class inherits a constructor from Gooddata::Bricks::Middleware
Instance Method Details
#call(params) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/gooddata/bricks/middleware/bench_middleware.rb', line 3 def call(params) puts "Starting timer" result = nil report = Benchmark.measure { result = @app.call(params) } puts "Stopping timer" pp report result end |