some soample counter methods

This commit is contained in:
Sam 2013-08-30 16:44:17 +10:00
parent 33800969a8
commit b730b27c4f
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,9 @@ if defined?(Rack::MiniProfiler)
Rack::MiniProfiler.config.backtrace_ignores << /config\/initializers\/silence_logger/ Rack::MiniProfiler.config.backtrace_ignores << /config\/initializers\/silence_logger/
Rack::MiniProfiler.config.backtrace_ignores << /config\/initializers\/quiet_logger/ Rack::MiniProfiler.config.backtrace_ignores << /config\/initializers\/quiet_logger/
# Rack::MiniProfiler.counter_method(ActiveRecord::QueryMethods, 'build_arel')
# Rack::MiniProfiler.counter_method(Array, 'uniq')
# require "#{Rails.root}/vendor/backports/notification" # require "#{Rails.root}/vendor/backports/notification"
# inst = Class.new # inst = Class.new