module RuntimeProfiler

Constants

VERSION

Public Class Methods

configure() { |self| ... } click to toggle source
# File lib/runtime_profiler.rb, line 33
def configure
  begin
    Rails.application.eager_load!
  rescue StandardError
    nil
  end
  yield self if block_given?
end
profile!(key, constants) { || ... } click to toggle source
# File lib/runtime_profiler.rb, line 42
def profile!(key, constants)
  constants = constants.is_a?(Array) ? constants : [constants]
  profiler = Profiler.new(constants)
  profiler.profile!(key) { yield }
end