From b730b27c4fd815edac9a4365ddb9f4a6396b283c Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 30 Aug 2013 16:44:17 +1000 Subject: [PATCH] some soample counter methods --- config/initializers/06-mini_profiler.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/initializers/06-mini_profiler.rb b/config/initializers/06-mini_profiler.rb index a7a5dbec5d9..8e24637a5d9 100644 --- a/config/initializers/06-mini_profiler.rb +++ b/config/initializers/06-mini_profiler.rb @@ -41,6 +41,9 @@ if defined?(Rack::MiniProfiler) Rack::MiniProfiler.config.backtrace_ignores << /config\/initializers\/silence_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" # inst = Class.new