src/speedup/precompiled-gems/Ruby25/Gems64/gems/ruby-prof-0.17.0/lib/ruby-prof/profile/legacy_method_elimination.rb
# eliminate some calls from the graph by merging the information into callers.
# matchers can be a list of strings or regular expressions or the name of a file containing regexps.
eliminate some calls from the graph by merging the information into callers.
matchers can be a list of strings or regular expressions or the name of a file containing regexps.
eliminate some calls from the graph by merging the information into callers . matchers can be a list of strings or regular expressions or the name of a file containing regexps .
def eliminate_methods!(matchers)
        RubyProf.deprecation_warning(
          "Method 'eliminate_methods!' is dprecated",
          "Please call 'exclude_methods!' before starting the profile run instead."
        )
        matchers = read_regexps_from_file(matchers) if matchers.is_a?(String)
        eliminated = []
        threads.each do |thread|
          matchers.each{ |matcher| eliminated.concat(eliminate_methods(thread.methods, matcher)) }
        end
        eliminated
      end
def eliminate_methods! ( matchers ) RubyProf . deprecation_warning ( "Method 'eliminate_methods!' is dprecated" , "Please call 'exclude_methods!' before starting the profile run instead." ) matchers = read_regexps_from_file ( matchers ) if matchers . is_a? ( String ) eliminated = [ ] threads . each do | thread | matchers . each { | matcher | eliminated . concat ( eliminate_methods ( thread . methods , matcher ) ) } end eliminated end
eliminate some calls from the graph by merging the information into callers.
eliminate some calls from the graph by merging the information into callers .
matchers
<not_specific>