module TestProf::FactoryProf::Printers::NateHeckler

def dump(result, start_time:, **)

def dump(result, start_time:, **)
  return if result.raw_stats == {}
  total_time = result.stats.sum { |stat| stat[:top_level_time] }
  total_run_time = TestProf.now - start_time
  percentage = ((total_time / total_run_time) * 100).round(2)
  log :info, "Time spent in factories: #{total_time.duration} (#{percentage}% of total time)"
end