Module: Rack
- Defined in:
- lib/patches/db/activerecord.rb,
lib/mini_profiler.rb,
lib/mini_profiler/views.rb,
lib/enable_rails_patches.rb,
lib/mini_profiler/config.rb,
lib/prepend_mysql2_patch.rb,
lib/mini_profiler/actions.rb,
lib/mini_profiler/version.rb,
lib/prepend_net_http_patch.rb,
lib/mini_profiler/asset_version.rb,
lib/mini_profiler/client_settings.rb,
lib/mini_profiler/timer_struct/sql.rb,
lib/mini_profiler/profiling_methods.rb,
lib/mini_profiler/timer_struct/base.rb,
lib/mini_profiler/timer_struct/page.rb,
lib/mini_profiler/storage/file_store.rb,
lib/mini_profiler/storage/redis_store.rb,
lib/mini_profiler/timer_struct/client.rb,
lib/mini_profiler/timer_struct/custom.rb,
lib/mini_profiler/storage/memory_store.rb,
lib/mini_profiler/timer_struct/request.rb,
lib/mini_profiler/storage/abstract_store.rb,
lib/mini_profiler/storage/memcache_store.rb
Overview
based off github.com/newrelic/rpm/blob/master/lib/new_relic/agent/instrumentation/active_record.rb fallback for alls sorts of weird dbs
Defined Under Namespace
Modules: MiniProfilerRails, MiniProfilerRailsMethods Classes: MiniProfiler
Constant Summary collapse
- MINI_PROFILER_ENABLE_RAILS_PATCHES =
true
- MINI_PROFILER_PREPEND_MYSQL2_PATCH =
true
- MINI_PROFILER_PREPEND_NET_HTTP_PATCH =
true
Class Method Summary collapse
Class Method Details
.insert_instrumentation ⇒ Object
35 36 37 38 39 |
# File 'lib/patches/db/activerecord.rb', line 35 def self.insert_instrumentation ActiveRecord::ConnectionAdapters::AbstractAdapter.module_eval do include ::Rack::MiniProfiler::ActiveRecordInstrumentation end end |