class Stackprofiler::Filter::GemRemoval
Public Class Methods
new(options={})
click to toggle source
# File lib/stackprofiler/filters/gem_removal.rb, line 6 def initialize(options={}) end
Public Instance Methods
filter(root, run)
click to toggle source
# File lib/stackprofiler/filters/gem_removal.rb, line 9 def filter root, run remove_frames root, run do |node, frame| # todo: gem determination depends on gems being # run from the same interpreter/rubygems path # as stackprofiler. is that a good idea? Gem.path.any? {|p| frame[:file].include?(p) } end end