Sha256: 4bd8b4911c0b534f372afe5a51a51b5e85be5d55243293ff82940c63d24fa11a

Contents?: true

Size: 734 Bytes

Versions: 3

Compression:

Stored size: 734 Bytes

Contents

# encoding: utf-8

require 'ruby-prof/profile/exclude_common_methods'
require 'ruby-prof/profile/legacy_method_elimination'

module RubyProf
  class Profile
    include LegacyMethodElimination

    # Hides methods that, when represented as a call graph, have
    # extremely large in and out degrees and make navigation impossible.
    def exclude_common_methods!
      ExcludeCommonMethods.apply!(self)
    end

    def exclude_methods!(mod, *method_or_methods)
      [method_or_methods].flatten.each do |name|
        exclude_method!(mod, name)
      end
    end

    def exclude_singleton_methods!(mod, *method_or_methods)
      exclude_methods!(mod.singleton_class, *method_or_methods)
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/ruby-prof-0.18.0/lib/ruby-prof/profile.rb
ruby-prof-0.18.0-x64-mingw32 lib/ruby-prof/profile.rb
ruby-prof-0.18.0 lib/ruby-prof/profile.rb