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