Sha256: bac85cd1495b4ece97ff974dcd3f9607537d6c2fd5f959588a0fc6024077e02e

Contents?: true

Size: 861 Bytes

Versions: 3

Compression:

Stored size: 861 Bytes

Contents

RailsMiniProfiler.configure do |config|
  # Customize when Rails Mini Profiler should run
  config.enabled = proc { |env| Rails.env.development? || env['HTTP_RMP_ENABLED'].present? }

  # Configure how hedgehog badge is rendered
  config.badge_enabled = true
  # config.badge_position = 'top-left'

  # Configure Flamegraph generation
  config.flamegraph_enabled = true
  # config.flamegraph_sample_rate = 0.5

  # Configure endpoints to profile
  config.skip_paths = []

  # Configure how Rails Mini Profiler stores profiling information
  # config.storage.database = :rmp_database
  # config.storage.profiled_requests_table = :rmp_profiled_requests
  # config.storage.traces_table = :rmp_traces
  # config.storage.flamegraphs_table = :rmp_flamegraphs

  # Customize how users are detected
  config.user_provider = proc { |env| Rack::Request.new(env).ip }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_mini_profiler-0.3.0 lib/generators/rails_mini_profiler/templates/rails_mini_profiler.rb.erb
rails_mini_profiler-0.2.1 lib/generators/rails_mini_profiler/templates/rails_mini_profiler.rb.erb
rails_mini_profiler-0.2.0 lib/generators/rails_mini_profiler/templates/rails_mini_profiler.rb.erb