blob: 00888c425faa397d6e35d9e61c4688185f726fca (
plain) (
tree)
|
|
require 'active_support/orchestra'
ActiveSupport::Orchestra.subscribe(/(read|write|cache|expire|exist)_(fragment|page)\??/) do |event|
human_name = event.name.to_s.humanize
ActionController::Base.log("#{human_name} (%.1fms)" % event.duration)
end
|