Class Rack::MiniProfiler
In: lib/mini_profiler/timer_struct/request.rb
lib/mini_profiler/timer_struct/client.rb
lib/mini_profiler/timer_struct/page.rb
lib/mini_profiler/timer_struct/custom.rb
lib/mini_profiler/timer_struct/sql.rb
lib/mini_profiler/timer_struct/base.rb
lib/mini_profiler/client_settings.rb
lib/mini_profiler/asset_version.rb
lib/mini_profiler/config.rb
lib/mini_profiler/storage/redis_store.rb
lib/mini_profiler/storage/abstract_store.rb
lib/mini_profiler/storage/file_store.rb
lib/mini_profiler/storage/memcache_store.rb
lib/mini_profiler/storage/memory_store.rb
lib/mini_profiler/profiler.rb
lib/mini_profiler/version.rb
lib/mini_profiler/profiling_methods.rb
lib/patches/db/activerecord.rb
Parent: Object

Methods

Included Modules

Rack::MiniProfiler::ProfilingMethods

Classes and Modules

Module Rack::MiniProfiler::ActiveRecordInstrumentation
Module Rack::MiniProfiler::ProfilingMethods
Module Rack::MiniProfiler::TimerStruct
Class Rack::MiniProfiler::AbstractStore
Class Rack::MiniProfiler::ClientSettings
Class Rack::MiniProfiler::Config
Class Rack::MiniProfiler::FileStore
Class Rack::MiniProfiler::MemcacheStore
Class Rack::MiniProfiler::MemoryStore
Class Rack::MiniProfiler::RedisStore

Constants

ASSET_VERSION = '12b4b45a3c42e6e15503d7a03810ff33'.freeze
VERSION = '0.9.9.2'

Public Class methods

So we can change the configuration if we want

discard existing results, don‘t track this request

options: :auto_inject - should script be automatically injected on every html page (not xhr)

Public Instance methods

cancels automatic injection of profile script for the current page

get_profile_script returns script to be injected inside current html page By default, profile_script is appended to the end of all html requests automatically. Calling get_profile_script cancels automatic append for the current page Use it when:

  • you have disabled auto append behaviour throught :auto_inject => false flag
  • you do not want script to be automatically appended for the current page. You can also call cancel_auto_inject

[Validate]