Sha256: 84deba69569a5385a4c31fe8f2001b3dc773c0115df423c7444fe22a10e50018

Contents?: true

Size: 521 Bytes

Versions: 9

Compression:

Stored size: 521 Bytes

Contents

MetricFu.metrics_require { "hotspots/analysis/groupings" }
module MetricFu
  class HotspotProblems
    def initialize(sub_table)
      @grouping = group_by(sub_table, "metric")
    end

    def problems
      problems = {}
      @grouping.each do |metric, table|
        problems[metric] = MetricFu::Hotspot.analyzer_for_metric(metric).present_group(table)
      end
      problems
    end

    def group_by(sub_table, by = "metric")
      MetricFu::HotspotGroupings.new(sub_table, by: by).get_grouping
    end
  end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
metric_fu-4.13.0 lib/metric_fu/metrics/hotspots/analysis/problems.rb
fastruby-metric_fu-5.0.0 lib/metric_fu/metrics/hotspots/analysis/problems.rb
code_metric_fu-4.14.4 lib/metric_fu/metrics/hotspots/analysis/problems.rb
code_metric_fu-4.14.3 lib/metric_fu/metrics/hotspots/analysis/problems.rb
code_metric_fu-4.14.2 lib/metric_fu/metrics/hotspots/analysis/problems.rb
code_metric_fu-4.14.1 lib/metric_fu/metrics/hotspots/analysis/problems.rb
code_metric_fu-4.14.0 lib/metric_fu/metrics/hotspots/analysis/problems.rb
metric_fu-4.12.0 lib/metric_fu/metrics/hotspots/analysis/problems.rb
metric_fu-4.11.4 lib/metric_fu/metrics/hotspots/analysis/problems.rb