module BenchBloc::RubyProfHelpers
Public Instance Methods
format_ruby_prof(res)
click to toggle source
# 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_results()
click to toggle source
# 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)
click to toggle source
# 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