Sha256: 4809e7e372c415f8f3f4a20065f272ace67b7d94a2f9f849c53e313e97ffe6cf

Contents?: true

Size: 290 Bytes

Versions: 10

Compression:

Stored size: 290 Bytes

Contents

module RailsPerformance
  module Reports
    class BreakdownReport < BaseReport
      def set_defaults
        @sort ||= :datetimei
      end

      def data
        db.data
          .collect { |e| e.record_hash }
          .sort { |a, b| b[sort] <=> a[sort] }
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails_performance-1.4.0 lib/rails_performance/reports/breakdown_report.rb
rails_performance-1.4.0.alpha5 lib/rails_performance/reports/breakdown_report.rb
rails_performance-1.4.0.alpha4 lib/rails_performance/reports/breakdown_report.rb
rails_performance-1.4.0.alpha3 lib/rails_performance/reports/breakdown_report.rb
rails_performance-1.4.0.alpha2 lib/rails_performance/reports/breakdown_report.rb
rails_performance-1.4.0.alpha1 lib/rails_performance/reports/breakdown_report.rb
rails_performance-1.3.3 lib/rails_performance/reports/breakdown_report.rb
rails_performance-1.3.2 lib/rails_performance/reports/breakdown_report.rb
rails_performance-1.3.1 lib/rails_performance/reports/breakdown_report.rb
rails_performance-1.3.0 lib/rails_performance/reports/breakdown_report.rb