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



4
5
6
# File 'app/api/core/benchmarking.rb', line 4

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

Instance Method Details

#benchmark(_message = nil) ⇒ Object



8
9
10
11
# File 'app/api/core/benchmarking.rb', line 8

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