Module: BenchBloc::RubyProfHelpers

Defined in:
lib/bench_bloc/helpers/ruby_prof_helpers.rb

Instance Method Summary collapse

Instance Method Details

#format_ruby_prof(res) ⇒ Object



8
9
10
# File 'lib/bench_bloc/helpers/ruby_prof_helpers.rb', line 8

def format_ruby_prof res
#   "Formatted Ruby Prof Results: #{res}"
end

#log_ruby_prof_resultsObject



12
13
14
15
16
17
18
19
20
# File 'lib/bench_bloc/helpers/ruby_prof_helpers.rb', line 12

def log_ruby_prof_results
  # prof = RubyProf::Profile.new()
  # prof.exclude_common_methods!
  # validator = ValidationRules::TsValidatorService.new(ts)
  # complex_rules = validator.get_complex_validation_rules
  # binding.pry
  # results = prof.profile { validator.run_complex_vr(complex_rules[0]) }
  # log_prof_results results
end

#run_ruby_prof(lam, args) ⇒ Object



2
3
4
5
6
# File 'lib/bench_bloc/helpers/ruby_prof_helpers.rb', line 2

def run_ruby_prof lam, args
#   RubyProf.start
#     lam.call args
#   RubyProf.end
end