Sha256: a283cbbd3fea69aaf167da4ed6be83d252ff69ffbf793ec2fa00e8906c48438b
Contents?: true
Size: 618 Bytes
Versions: 34
Compression:
Stored size: 618 Bytes
Contents
# encoding: UTF-8 # # Copyright (c) 2010-2015 GoodData Corporation. All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. require 'benchmark' require_relative 'base_middleware' module GoodData module Bricks class BenchMiddleware < Bricks::Middleware def call(params) params = params.to_hash puts 'Starting timer' result = nil report = Benchmark.measure { result = @app.call(params) } puts 'Stopping timer' pp report result end end end end
Version data entries
34 entries across 34 versions & 3 rubygems