Sha256: 9c33ede515fed93560b2cf47a657ebd36ce75fa9af03fc3f4f385b27cd5fa67b

Contents?: true

Size: 556 Bytes

Versions: 15

Compression:

Stored size: 556 Bytes

Contents

module RailsPerformance
  module Extensions
    module View

      def info(&block)
        CurrentRequest.current.store({
          group: :view,
          message: block.call
        })
        super(&block)
      end

    end
  end
end

module RailsPerformance
  module Extensions
    module Db

      def sql(event)
        CurrentRequest.current.store({
          group: :db,
          duration: event.duration.round(2),
          sql: event.payload[:sql]
        })
        super(event)
      end

    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rails_performance-0.9.9 lib/rails_performance/extensions/capture_everything.rb
rails_performance-0.9.8 lib/rails_performance/extensions/capture_everything.rb
rails_performance-0.9.7 lib/rails_performance/extensions/capture_everything.rb
rails_performance-0.9.6 lib/rails_performance/extensions/capture_everything.rb
rails_performance-0.9.5 lib/rails_performance/extensions/capture_everything.rb
rails_performance-0.9.4 lib/rails_performance/extensions/capture_everything.rb
rails_performance-0.9.3 lib/rails_performance/extensions/capture_everything.rb
rails_performance-0.9.2 lib/rails_performance/extensions/capture_everything.rb
rails_performance-0.9.1 lib/rails_performance/extensions/capture_everything.rb
rails_performance-0.9.0.1 lib/rails_performance/extensions/capture_everything.rb
rails_performance-0.9.0 lib/rails_performance/extensions/capture_everything.rb
rails_performance-0.0.1.19 lib/rails_performance/extensions/capture_everything.rb
rails_performance-0.0.1.18 lib/rails_performance/extensions/capture_everything.rb
rails_performance-0.0.1.17 lib/rails_performance/extensions/capture_everything.rb
rails_performance-0.0.1.16 lib/rails_performance/extensions/capture_everything.rb