Module: Core::Benchmarking

Included in:
Io::Base, Io::List, Service::Request, Service::Response
Defined in:
app/api/core/benchmarking.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.registered(app) ⇒ Object


2
3
4
# File 'app/api/core/benchmarking.rb', line 2

def self.registered(app)
  app.helpers self
end

Instance Method Details

#benchmark(_message = nil) ⇒ Object


6
7
8
9
# File 'app/api/core/benchmarking.rb', line 6

def benchmark(_message = nil)
  yield
  # ActiveRecord::Base.benchmark("===== API benchmark (#{message || 'general'}):", Logger::ERROR, &block)
end